-
Notifications
You must be signed in to change notification settings - Fork 40
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
Where are the states ? #18
Comments
You mean the React's state? |
Yes, or did i misunderstood the usage? |
I test fluxxor some days ago, they implement a function for the transfer to the local state. |
But stores don't know which views is listening theirselves. If they do, it wouldn't be unidirectional, it becomes bidirectional. Am I right? |
Actually it makes sense when I read the Fluxxor's code. I'll try to implement it. |
Ahh, hey now I read the code again and saw that I already pass the store data to the local state, it means DeLorean already supports what Fluxxor does, but automatically. And you can use {this.state.stores.increment.total} Here is the example: http://jsfiddle.net/a2ms7rcc/2/ |
Thanks, will have a closer look on it. |
In your example jsfiddle you access the stores directly
{this.stores.increment.store.total}
Why not transfer the data automatically from the stores to the local state ?
The benefit will be, that it is unimportant for the view renderer from where the state data come (decoupled).
The text was updated successfully, but these errors were encountered: