{"repo":"HuolalaTech/react-query-kit","free":true,"listed":false,"github":"https://github.com/HuolalaTech/react-query-kit","clone":"git clone https://github.com/HuolalaTech/react-query-kit.git","description":"🕊️ A toolkit for ReactQuery that make ReactQuery hooks reusable and typesafe","language":"TypeScript","stars":486,"topics":["react","react-query","react-query-kit"],"license":"MIT","category":"machine-learning","readme_excerpt":"🕊️ A toolkit for ReactQuery that make ReactQuery reusable and typesafe --- What could you benefit from it - 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 English 简体中文 Table of Contents - Installation - Examples - Usage - createQuery - createInfiniteQuery - createSuspenseQuery - createSuspenseInfiniteQuery - createMutation - router - Middleware - TypeScript - Type inference - Disabling Queries - FAQ - Migration - Issues - 🐛 Bugs - 💡 Feature Requests - LICENSE Installation This module is distributed via [npm][npm] which is bundled with [node][node] and should be installed as one of your project's dependencies : If you still on React Query Kit v2? Check out the v2 docs here: https://github.com/liaoliao666/react-query-kit/tree/v2#readme. Examples - Basic - Optimistic Updates - Next.js - Load-More & Infinite Scroll createQuery Usage Additional API Reference Options - fetcher: (variables: TVariables, context: QueryFunctionContext ) = TFnData Promise - Required - The function that the query will use to request data. And The second param is the QueryFunctionContext of queryFn . - variables?: TVariables - Optional - variables will be the frist param of fetcher and the last element of the queryKey array - use: Middleware[] - Optional - array of middleware functions (details) Expose Methods - fetcher: (variables: TVariables, context: ","default_branch":null,"files":null,"tree":[],"storefront":"/r/HuolalaTech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HuolalaTech/react-query-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}