Skip to content

How to make global effects in svelte 5? #13970

Answered by brunnerh
nyssance asked this question in Q&A
Discussion options

You must be logged in to vote

For effects that are decoupled from component lifecycles, you need an $effect.root wrapping an $effect.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nyssance
Comment options

Answer selected by nyssance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants