Skip to content

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
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