T
TanStack2mo ago
mute-gold

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?
1 Reply
like-gold
like-gold2mo ago
That's strange! Could you submit a repro?

Did you find this page helpful?