Open derolf opened 3 years ago
I think the docs were basically copied and pasted from react-query.
Yeah, that’s what I figured out as well. Anyway, I think the docs should be fixed…
Since useQuery
creates a Readable
store. It can't be conditionnally executed (svelte compiler will try to subscribe to it anyway).
https://sveltequery.vercel.app/guides/parallel-queries
I am verify familiar with the concept of hooks and all their pitfalls in React, but this is the first time I read something mentioning rules of hooks in Svelte.
Can you please elaborate what can go one calls useQuery conditionally?