v4.0.0-beta.1
Pre-release
Pre-release
4.0.0-beta.1 (2022-04-02)
Bug Fixes
- core: do not refetch disabled queries (#3223) (c0fc916)
- createAsyncStoragePersister: persistClient respects throttleTime (#3331) (#3336) (338da80)
- mutations: allow passing a function to useErrorBoundary (#3390) (fee4a14)
- mutations: avoid infinite loading states if callbacks return an error (#3343) (f426899)
- persistQueryClient: subscribe to both QueryCache and MutationCache (39a213e)
- queryObserver: defer tracking of error prop when useErrorBoundary is on (#3087) (c50b630)
- react-native: bring back check for window.addEventListener (#3345) (02fd793)
Features
-
add support for react 18 (4d753c0)
-
cacheTime: default cacheTime to Infinity for SSR (#3377) (3ed5e48)
-
persistQueryClient: PersistQueryClientProvider (#3248) (ba78256)
-
add optional logger prop to QueryClient config (#3246) (315f0cf)
-
persistQueryClient: improve persist controls (#3141) (1abb371)
-
useQueries: v4 api to take an object as input (#3071) (942805f)
-
v4 alpha (#3060) (b84681f), closes #3060 #2936 #2937 #2938 #2884 #2963 #2961 #2969 #2988 #2987 #2993 #2996 #3006 #3051 #3054 #3061
BREAKING CHANGES
- remove setLogger
- new query filters, query key must be an array