Closed Tucker-Eric closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
valtio | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 27, 2024 3:29pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Thanks for the suggestion. However, I think this is by design. We want the implementation to be minimal and I don't think this change works for some edge cases. For example, we still want to use the old object.
Related Issues or Discussions
Relates to #449
Summary
This change allows for listeners to be resubscribed to objects that are replaced.
These changes allow the following code to not lose the subscription to the object that previously would lose the subscription:
Check List
yarn run prettier
for formatting code and docs