-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Ensure cloning of incomming data #891
Conversation
Please verify syntax
Yes they are :) hopefully.. |
Oof, making updates to branches on forks is not the most ergonomic experience, but at least I know how to do it now :) Fixed the syntax, and updated the tests. Thanks for the suggestion @petterek |
Thanks for the PR @petterek. I read the Gitter convo but I'm not entirely clear on what bug this is fixing? I ask because it would probably be preferable not to call |
It might be i'm missusing svelte.. :) but.. I can fix my issue by letting the data() of the component return an empty object. |
That's odd... can you create a repro? |
@Rich-Harris I am actually able to reproduce what I think @petterek is referring to - https://gist.github.com/Conduitry/22dc70fcca81f5836989bd750c35baa0 - The app continues to render '0' and not '42'. If I include a |
Ah, got it, thanks. Understand the problem now. Definitely a bug that needed to be fixed — I think at some point we might want to have a slightly different initialisation process for nested versus root-level components, so that we can Thanks for the fix @petterek 👍 |
PS I added a test based on @Conduitry's gist |
Please verify syntax