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
Cannot use iterables in bindings #19945
Comments
Added this to the 1.6 milestone. |
Is this just for the dirty checking? If ObservableMap doesn't notify on #keys, it should be fine, no? |
It doesn't seem to be just for dirty checking. I went back and continued refining that test. I can't repro with path_observers today (I must have misinterpreted a result yesterday), but I still see the problem with polymer_expressions. Here is a simplified test case that illustrates the issue: <!DOCTYPE html> The value displayed by "value: " is 100 initially, and x+100 when you enter some value x. If you remove the "bogus" binding, then we just use the value from the notification, but otherwise we evaluate the value of the expression. Removed this from the 1.6 milestone. |
Note: this can't be repro on its own, it requires the changes to polymer_expressions that you can see in the CL above. |
Assigning owner as Priority is High. If this is done in error, please reassign or bump priority down. Thanks! Set owner to @sigmundch. |
Removed the owner. |
This issue has been moved to dart-archive/polymer-dart#508. |
They could generate infinite loops. Right now we are OK with them because we are not discarding changes in 'get value' in polymer-expressions, but you'd hit the issue if we fix that. We also hit this if you use path_observers.
Here is a change that illustrates the problem:
https://codereview.chromium.org/382683005
ObservableMap.keys would always be different, so we would think there was a change every time we do a read. The CL patches ObservableMap.keys to cache it's previous result to illustrate that the issue goes away if we know somehow that the value didn't change.
I think we need to guarantee that with any Bindable, calling
get value
twice in a row should return either the same thing, or equal values.Haven't we solved this issue before already?
The text was updated successfully, but these errors were encountered: