T
TanStack21h ago
sensitive-blue

Caching response in layout files

Hey! I’ve set up a main +layout.svelte file where I fetch my data. The problem is that every time I navigate to another subpage that uses this layout, the data gets fetched again. Is there a way to configure Svelte Query so that it caches the data in the layout instead of refetching it on each navigation?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?