-
Notifications
You must be signed in to change notification settings - Fork 4
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
Nodes stamped by dom-if are duplicated when imported-template is reattached to DOM #26
Comments
I did not manage to fix this, though I have isolated the problem in a single test. See the above commit. This causes a problem in the Website app, meaning that it blocks the Launcher roadmap (https://github.com/StarcounterPrefabs/Launcher/issues/261, point 9) @miyconst could you please take a look? Maybe a new pair of eyes can fix it. |
I think I know what the problem is.
Overloading this method in I have made some test last month (commit e539d12) without a solution to the problem. Now I think I have the solution for the problem (see the snippet below). I am just not sure if it fixes the same problem or some other problem, but I am sure it is needed ;) Definitely the quality of it can be improved. @tomalec, would you have time to check if this can solve the problem?
Then, you also need to change:
to:
|
Nic catch! I'll check it tomorrow morning |
It seems your re-pro with only polymer, was checkign wrong thing. Take a look here |
I don't think your snippet is needed and could help somehow, as at https://github.com/Juicy/imported-template/blob/master/imported-template.html#L103 we are making Also it does not make tests https://github.com/Juicy/imported-template/tree/reattached-fix/test/use-cases/dom-manipulation pass. |
Yeah, I just was able to reproduce the original problem by running Website + People + SignIn. My snippet from #26 (comment) indeed does not help with that problem. @tomalec any idea how to fix the OP? |
Ok, now I can reproduce it, I'll dig deeper |
I have reduced it a little bit: So, the suspects are : still investigating |
I have found something that could cause it https://github.com/StarcounterPrefabs/Website/issues/46, however |
After some investigation I would bet it's related to this issue Polymer/polymer#3682 I suspect fixing https://github.com/StarcounterPrefabs/Website/issues/46 should hide this problem for some time. @warpech WDYT? |
Fixing https://github.com/StarcounterPrefabs/Website/issues/46 does not hide the problem. |
Could you provide a build with that fix, so I could investigate further? |
@tomalec this PR https://github.com/StarcounterSamples/Website/pull/53 hides the problem |
Get back to this in Starcounter 2.4 |
This is a continuation of to Starcounter/starcounter-include#17, because after some research, I have managed to further isolate the problem to
imported-template
.The problem is that nodes stamped by
dom-if
are duplicated when the parent node ofimported-template
is detached and then attached to DOMI have written a test that fails in
imported-template
. I will commit it to a branch.I think that the problem is between
imported-template
and Polymer, because using only Polymer this works as desired: https://jsbin.com/pesece/1/edit?html,js,output)The text was updated successfully, but these errors were encountered: