Skip to content
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

Actually use setState in deserialize function #1113

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

exyi
Copy link
Member

@exyi exyi commented Aug 24, 2021

The previous version assigned the new value into state manager,
but it then immediately did the old deserialize logic.
The deserialization forces creation of all observables in the tree, even
if they are not used in the view, which is what makes it so slow

The previous version assigned the new value into state manager,
but it then immediately did the old deserialize logic.
The deserialization forces creation of all observables in the tree, even
if they are not used in the view, which is what makes it so slow
@quigamdev quigamdev merged commit 498db26 into main Aug 24, 2021
@quigamdev quigamdev deleted the deserialize-actually-useState branch August 24, 2021 20:22
@quigamdev quigamdev added this to the Version 3.2 milestone Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants