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

feat: fine-grained readonly markers #195

Merged
merged 7 commits into from
Apr 25, 2024

Conversation

davidjayb
Copy link
Contributor

This is a proposed solution to the issue I describe in #194

Because nodes need to serialize props and other attributes for viewing in the devtools, props lose reference to the prototype chain which can cause exceptions and other side effects to occur. I've added a local cache of the original objects that were serialized and update them before injecting the state back into svelte.

@ignatiusmb ignatiusmb changed the title feat: support prop updates on objects with functions (#194) feat: fine-grained readonly markers Apr 24, 2024
@ignatiusmb ignatiusmb merged commit be27fe7 into sveltejs:master Apr 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating prop values of an object with a function property causes an exception
2 participants