Performant and powerful data synchronization for Svelte

Fetch, cache and update data in your Svelte applications all without touching any "global state".

Declarative & Automatic

Writing your data fetching logic by hand is over. Tell Svelte Query where to get your data and how fresh you need it to be and the rest is automatic. Svelte Query handles caching, background updates and stale data out of the box with zero-configuration.

Simple & Familiar

If you know how to work with promises or async/await, then you already know how to use Svelte Query. There's no global state to manage, reducers, normalization systems or heavy configurations to understand. Simply pass a function that resolves your data (or throws an error) and the rest is history.

Powerful & Configurable

Svelte Query is configurable down to each observer instance of a query with knobs and options to fit every use-case. It comes wired up with infinite-loading APIs, and first class mutation tools that make updating your data a breeze. Don't worry though, everything is pre-configured for success!

Trusted in Production by

Less Code. Fewer Edge Cases.

Instead of writing reducers, caching logic, timers, retry logic, complex async/await scripting (I could keep going...), you literally write a tiny fraction of the code you normally would. You will be surprised at how little code you're writing or how much code you're deleting when you use Svelte Query.

One Dep, All the Features.

With Svelte as the only dependency, Svelte Query is extremely lean, but also strategically packed to the brim with features you're bound to need in almost any project. From weekend hobbies all the way up to enterprise e-commerce systems (lookin' at you Walmart!), Svelte Query is jam packed with battle-hardened tools to help you succeed.

Backend agnosticAuto CachingAuto RefetchingWindow Focus RefetchingPolling/Realtime QueriesParallel QueriesDependent QueriesMutations APIAutomatic Garbage CollectionPaginated/Cursor QueriesLoad-More/Infinite Scroll QueriesScroll RecoveryRequest CancellationSuspense Ready!Render-as-you-fetchPrefetchingVariable-length Parallel QueriesOffline SupportSSR SupportData Selectors

Subscribe to our newsletter

The latest TanStack news, articles, and resources, sent to your inbox.

    I won't send you spam.

    Unsubscribe at any time.

    © 2020 Tanner Linsley. All rights reserved.