You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a setContext in my App.svelte where my <Router {routes} /> definition is, but when I call getContext in my Layout.svelte the value is undefined. It's also undefined if I call it from a route that gets called from within my Layout, but that's another layer of indirection and perhaps that's to be expected. The more pressing issue is that I can't use setContext within my App.svelte to pass values to my Layout file. Any advice on this?
To give a bit of context, I'm trying to pass around a store that holds an object to my layout, and also to my nested routes under my layout. I can't pass it into named params because params is of type Record<string, string>, but I need to pass along the whole object not just a string.
The text was updated successfully, but these errors were encountered:
I have a setContext in my App.svelte where my
<Router {routes} />
definition is, but when I call getContext in my Layout.svelte the value is undefined. It's also undefined if I call it from a route that gets called from within my Layout, but that's another layer of indirection and perhaps that's to be expected. The more pressing issue is that I can't use setContext within my App.svelte to pass values to my Layout file. Any advice on this?To give a bit of context, I'm trying to pass around a store that holds an object to my layout, and also to my nested routes under my layout. I can't pass it into named params because params is of type
Record<string, string>
, but I need to pass along the whole object not just a string.The text was updated successfully, but these errors were encountered: