Skip to content

Why is a function with $page store reactive? #13522

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

You must be logged in to vote

This does in fact not work with Svelte < v5.

It works there because reactivity is signal-based, so it can pass function and module boundaries.
The page store emits a signal and whatever calls the function can track that.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@brunnerh
Comment options

@hyunbinseo
Comment options

@brunnerh
Comment options

@hyunbinseo
Comment options

@brunnerh
Comment options

Answer selected by hyunbinseo
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