Closed souptown closed 8 years ago
Why do you store a child reference in parent reference? Why not expose public API in ChildStore
to access it's state? It would make dependencies more explicit i think.
I used this pattern to have a single state object for the page. https://github.com/souptown/react-refluxjs-single-page-state-pattern
By having the children as properties of the state, they are easily accessible to pass as props to child components in React.
Interesting pattern– thanks for sharing! I've marked this as a "resource" so that people can find it in the issues. Any further conversation would fit perfectly into our new discussion repo (https://github.com/reflux/discuss), so don't hesitate to open a new issue over there!
This is not an issue. Just sharing a pattern.
Description: https://github.com/souptown/refluxjs-aggregate-store-pattern Example: http://codepen.io/anon/pen/xwPEMe
I'll copy it here:
refluxjs-aggregate-store-pattern
This is a pattern for creating aggregate stores in refluxjs.
Example
Shopping cart example