-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Closed
Copy link
Labels
Description
Describe the bug
In a SvelteKit app, I'm putting a store on data so that one page can tell a layout about whether to temporarily hide a navigational item. Svelte 5's $: sorting logic appears to differ from Svelte 4's in this case, and the update to the store is trying to happen before the store itself has been destructured from the data prop. (At least that's what I think is happening. I'm still not sure though why I'm getting 'store.set is not a function' and not 'store is not defined' if this is the case.)
In my case, the workaround is pretty easy - use store.set(...) instead of $store = ... - but it was still confusing, especially when this was being masked by #12857.
Reproduction
Logs
No response
System Info
n/aSeverity
annoyance