-
Notifications
You must be signed in to change notification settings - Fork 623
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
Fix: 2 islands on 1 page are revived #197
Conversation
Thanks for the fix. I think this should generally work, except in the case of nested islands. Nested islands will not work like you are expecting. In the test with |
I guess this does fix nested islands like I described in #168, so we can probably land this. The only concern is that there is a little bit of inefficiency because we are shipping the props for the |
This intend of this PR is not really to fix #168 but to fix #196 (the reviving issue when 2 island are in one page). I added to test for the nested island because i though they would be needed in the future anyway and to make sure there was no regression. nested island still don't work for example with a thin outer as per reported in #178 if you think, that the nested island test should be added in a PR with a more holistic way around the nested island issue, then they can be removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I have removed the nested islands test for now.
Thanks for working on this.
Fix: #196
The island end comment node was removed before the call to node.nextSibling, stopping the walk. I have re-ordered the deletion and added a test.