Blog Logo
TAGS

ReactQuery Toolkit: Making ReactQuery Reusable and Typesafe

🕊ī¸ A toolkit for ReactQuery that makes ReactQuery reusable and typesafe. Manage `queryKey` in a type-safe way. Make `queryClient`s operations clearly associated with custom ReactQuery hooks. You can extract the TypeScript type of any custom ReactQuery hooks. Middleware included. Installation guide provided for npm and yarn. Examples available for basic usage, optimistic updates, Next.js, load-more & infinite scroll. Detailed usage guide for createQuery with code examples. Additional API reference for fetcher, variables, getFetchOptions, getKey, getOptions, getQueryData, setQueryData, useQueries, and more. Check out the v2 docs if still on React Query Kit v2. English | įŽ€äŊ“中文.