TanStack Query
15 rules in fabricahq/public-library
Define hierarchical query keys and options in factories
MEDIUMfabricahq/public-library
Derive component views of query data with a stable select
LOW-MEDIUMfabricahq/public-library
Derive infinite query page params from the server's response
MEDIUMfabricahq/public-library
Fetch a dynamic set of queries with useQueries
MEDIUMfabricahq/public-library
Invalidate or update every query a mutation changes
HIGHfabricahq/public-library
Key each query by every input it uses
HIGHfabricahq/public-library
Make offline behavior explicit
LOW-MEDIUMfabricahq/public-library
Make optimistic updates reversible, and decide them once
MEDIUM-HIGHfabricahq/public-library
Pass the query's AbortSignal to the request
MEDIUMfabricahq/public-library
Prefetch likely next data on user intent
MEDIUMfabricahq/public-library
Prefetch on the server and hydrate the query cache
MEDIUM-HIGHfabricahq/public-library
Read mutation state from other components with useMutationState
LOW-MEDIUMfabricahq/public-library
Reset query errors when an error boundary retries
HIGHfabricahq/public-library
Set staleTime from how fast data changes
MEDIUMfabricahq/public-library
Use initialData only for complete data
MEDIUMfabricahq/public-library