Closed afonsolopez closed 1 year ago
Please follow the directions given in the issue template for what constitutes a reproduction.
A link to a repository, or a fork of https://node.new/sveltekit, that reproduces the issue. Reproductions must be short, self-contained and correct and must not contain files or code that aren't relevant to the issue — please do NOT just paste a link to your project. Explaining how to reproduce is generally not enough. It pushes the burden of creating a reproduction project onto a small set of volunteer maintainers and isn't scalable. If no reproduction is provided, the issue will be closed.
Just a guess but you might want $page.data
instead of the data
prop on the layout, since the layout's data
prop won't have data from a subroute's load function. Hard to tell without a full example though.
Just a guess but you might want
$page.data
instead of thedata
prop on the layout, since the layout'sdata
prop won't have data from a subroute's load function. Hard to tell without a full example though.
Thanks man! it worked! 🥳
Describe the bug
I have this page layout, where I want to store in a sidebar, updated data about my user credentials (from a API that I update and store in a SvelteKit Store).
The problem is, no matter what I do the data from the sidebar doesn't update, in the other hand at any other page it updates.
I tried several things like calling the store trough reactive variables, but nothing seems to work...
Reproduction
I've just started a new SvelteKit project and added a few libraries:
Logs
No response
System Info
Severity
annoyance
Additional Information
No response