Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass props stream into factory #9

Open
istarkov opened this issue Jun 2, 2016 · 0 comments
Open

Pass props stream into factory #9

istarkov opened this issue Jun 2, 2016 · 0 comments

Comments

@istarkov
Copy link

istarkov commented Jun 2, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant