Skip to content

Pass props stream into factory #9

Open
@istarkov

Description

@istarkov

Just an idea,
For now this library will not work on props change, as factory called on componentDidMount,
so any props change will not cause any changes.

But what if props become a stream, so it will be possible to create factories like

const myFactory = (props$) => 
    (actions$, store) => 
        props$
         .map(...)
         .distinctUntilChanged()
         .map(p => ACTION(p))

And this will allow to fetch data again on props change without recreating the component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions