-
Notifications
You must be signed in to change notification settings - Fork 141
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
Getters getting triggered on n-dimensional maps #187
Comments
Hey Pbeets, Under the hood the getter evaluation mechanism has changed, however it shouldn't be calling a change handler (via Can you elaborate a bit more on how you are consuming this getter, are you This seems like a pretty serious issue to me, it'd be great to have more context. |
@jordangarcia I'm consuming it via getDatabindings / ReactMixin. However using an observe seems to have the same effect. The getters are setup before hand so the data it's supposed to get doesn't exist yet. |
What type of data is being returned, you mentioned that it was undefined? If you could post an example of the store / getter that would help a lot On Wednesday, November 4, 2015, pbeets [email protected] wrote:
|
Unable to reproduce. Looks like it was a problem on my end. |
@jordangarcia Alright, finally figured out the condition. Looks like for particular set of combine functions, the getter handler is being called regardless. I've added an example: |
Seems like the refactor of reactor now triggers getters whenever a change happens at the root level.
For ex:
version 1.1.2
and before, will only get triggered when['key1', 'key2', 'key3']
has changed.version 1.2.0
the above getter is triggered when anything in['key1']
changes. This is undesirable as even ifkey3
has not been set it will still receive and update a bound state withundefined
.The text was updated successfully, but these errors were encountered: