-
Follow this documents https://svelte.dev/docs/svelte/context |
Beta Was this translation helpful? Give feedback.
Answered by
brunnerh
Oct 27, 2024
Replies: 1 comment 1 reply
-
For effects that are decoupled from component lifecycles, you need an |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nyssance
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For effects that are decoupled from component lifecycles, you need an
$effect.root
wrapping an$effect
.