In routes/home/__layout.svelte, there is a variable:
let activeId;
Is it possible to modify the activeId from:
routes/home/content.svelte, which will use the above layout.routes/__layout.svelte, which is a parent layout of the above layout.
In routes/home/__layout.svelte, there is a variable:
let activeId;
Is it possible to modify the activeId from:
routes/home/content.svelte, which will use the above layout.routes/__layout.svelte, which is a parent layout of the above layout.I would probably just use a store that is made available through a context that is set in the root layout.