-
Notifications
You must be signed in to change notification settings - Fork 160
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
[QUESTION] Observe is only called once instead of everytime something changes in the store #165
Comments
There is no need in Nuclear to call Instead, you just define a Remove the Then, add something like this to your React class:
Then you can access I would also recommend (re)reading the NuclearJS docs on how getters work. |
@mindjuice Thank you for your answer. Sadly it still does not work. I tried rereading the NuclearJS docs, but I don't seem to get the hang of it.
Could you tell me where I go wrong, we could also do this over PM in Gitter if you would prefer that. |
I haven't actually used Nuclear with ES6 class syntax. I use The nuclear-js-react-addons repo has some wrappers and decorators that let you use ES6 syntax with Nuclear, so I'd look there next. There was also some discussion about this here: #44 |
The goal is that some items can become favorite and are then rendered in a special list.
But my code does not work cause the observer just works once. Have this problem more often so somehow my implementation of observe isn't correct.
First the user clicks on a listitem with calls upon an action:
This reaches the store:
Getter:
and then the observer is called:
The text was updated successfully, but these errors were encountered: