-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Provider component is not intuitive for passing props #68
Comments
I'm not really sure what props you have troubles passing. What problems do you have, after |
I'm not reporting it as a bug. It may be an improvement or something. |
I'm not saying I think you're reporting it as a bug :-). |
To clarify, |
I'm giving up. I just thought it can be simpler(like passing props directly), without understanding the implementation details. And probably I don't understand the true purpose behind And I turned my ideas into a "Redux clone for learning purpose" at https://github.com/mvc-works/actions-recorder (use |
The purpose is to expose Without a) pass the |
Same for me. Now, I understand, thanks. |
It makes sense. We even used a Personaly I still prefer the verbose way since it doesn't intrduce new terms or concepts. I can see the "very verbose" way in my own solution: React.render(Page({
store: initial,
records: Immutable.List(),
pointer: -1
}), document.body);
recorder.subscribe(function (store, records, pointer) {
return React.render(Page({
store: store,
records: records,
pointer: pointer
}), document.body);
}); |
Yes, and also always tendering from the top will be slower. |
Did you mean |
Yes, it's faster to If most of your components implement |
I prefer Immutable data in such cases :) |
Immutable doesn't solve this problem. React has to reconcile the tree, whether you use Immutable or something else. |
Fine. |
Previously discussed on Twitter: https://twitter.com/dan_abramov/status/635441125013200896
Related code:
https://github.com/jackielii/simplest-redux-example/blob/master/index.js#L56
In order to pass the props, we need one more file to bind the props:
The text was updated successfully, but these errors were encountered: