-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Exception in notifyPath after Polymer/2007-kschaaf-key-disambiguate #2556
Comments
Chrome is running into this now (TypeErrors in notifyPath calls that did not previously throw an error). There seems to be some kind of race condition where, if multiple elements reference the same object via data binding, when that object is initially set in one element, a full path for one of that object's sub-sub-sub-properties is sent via notifyPath to another element that hasn't yet received the base object. If that makes any sense. |
My first impression is that there is a name collision between the inner template binding I tried to pinpoint the bug around |
Ensure outer paths aren't forwarded to instance props. Fixes #2556.
It seems that there is annotation scoping issue in templates that is now revealed by the changes in 2007-kschaaf-key-disambiguate.
Sorry for the large example, I couldn't make it smaller.
If you click on the test button, there is an exception in the following function from notify-path.html
This is because
x-row
tag is being notified on the following path:model.#0.#1.key
.If you replace the inner repeat by:
the problem disappears.
This issue had no consequence before the #2007 fix because notifications on invalid paths were simply ignored.
The text was updated successfully, but these errors were encountered: