mirror of https://github.com/sveltejs/svelte
fix: don't try to add owners to non-`$state` class fields (#14533)
* fix: don't try to add owners to non-`$state` class fields `$state.raw` and `$derived(.by)` will not have a state symbol on them, potentially causing a disastrous amount of traversal to potentially not find any state symbol. So it's better to not traverse them. Potentially someone could create a `$state` while creating `$state.raw` or inside a `$derived.by`, but that feels so much of an edge case that it doesn't warrant a perf hit for the common case. Fixes #14491 * for bind:, toopull/14537/head
parent
b5588523fc
commit
bbee1fc7e0
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: don't try to add owners to non-`$state` class fields
|
Loading…
Reference in new issue