T
TanStack9mo ago
ambitious-aqua

Using svelte load function for non-ssr data fetching

Hey hey! Curious if I have this fundamentally misunderstood but is this not something that is supported by tanstack. Or if I've messed up the syntax somewhere. The idea was I could put this createquery on the component but I'd rather start fetching data when hovering on the link so i should move it to the load function? Or any code examples also appreciated https://tanstack.com/query/v5/docs/framework/svelte/ssr
SSR and SvelteKit | TanStack Query Svelte Docs
Setup SvelteKit defaults to rendering routes with SSR. Because of this, you need to disable the query on the server. Otherwise, your query will continue executing on the server asynchronously, even af...
No description
No description
No description
1 Reply
other-emerald
other-emerald9mo ago
Hello, if you write this question on #svelte-query-questions , you will get more help.

Did you find this page helpful?