mirror of https://github.com/sveltejs/svelte
fix: widen ownership when calling setContext (#15153)
Instead of doing ownership addition at each `getContext` call site, we do it once as the `setContext` call site and make the state basically global. - avoids potential false positives in edge cases - makes the whole thing more performant, especially around things like calling `getContext` inside a list item component - false negatives are unlikely from this fixes #15072pull/15156/head
parent
522557559f
commit
f5406c952e
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: widen ownership when calling setContext
|
Loading…
Reference in new issue