TanStackT
TanStack3y ago
5 replies
slow-yellow

Use createQuery without Context API?

Hi, is there anyway to use createQuery without using the Context API for fetching the QueryClient to use? I am trying to use createQuery outside the context of a Svelte component to fetch some data. I want createQuery to return a Svelte store like it does today. I just want to pass my own QueryClient instead of relying on Context.
Was this page helpful?