We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fromStore()
$derived
$derived values based on an object created by fromStore() do not seem to update.
Found by @dusty-phillips (see #13998).
class ThemeState { #storeState = fromStore(store) value = $derived(this.#storeState.current) // does not update }
Full reproduction playground
I tried using $derived.by and a plain JS object instead of a class, neither change seemed to have any effect.
$derived.by
Sync via $effect works.
$effect
No response
REPL
annoyance
The text was updated successfully, but these errors were encountered:
A more interesting case is this: https://svelte.dev/playground/dc5073f43caa4def903817a94a1e32b5?version=5.1.3
Sorry, something went wrong.
trueadm
Successfully merging a pull request may close this issue.
Describe the bug
$derived
values based on an object created byfromStore()
do not seem to update.Found by @dusty-phillips (see #13998).
Reproduction
Full reproduction playground
I tried using
$derived.by
and a plain JS object instead of a class, neither change seemed to have any effect.Sync via
$effect
works.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: