mirror of https://github.com/sveltejs/svelte
Snapshotting can error on un-cloneable objects. It's not practical to error in this case; often there's no way out of this for users, so it makes sense to return the original value in that case, and warn in dev mode about it. closes #12438pull/12445/head
parent
b27113ddfd
commit
f21163a5ae
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure `$state.snapshot` never errors
|
||||
@ -1,3 +1,7 @@
|
||||
## dynamic_void_element_content
|
||||
|
||||
> `<svelte:element this="%tag%">` is a void element — it cannot have content
|
||||
|
||||
## state_snapshot_uncloneable
|
||||
|
||||
> An object could not be cloned with $state.snapshot, the original value will be returned
|
||||
|
||||
Loading…
Reference in new issue