-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededv3
Description
Below are the official breaking changes and features for v3. If you have a feature request or idea, please use the Discussions tab to open a new discussion about that idea.
Global:
- Remove usePaginatedQuery.
- Remove ReactQueryConfig.shared as it only contains one value.
- Change QueryConfig.enabled type to boolean but keep behavior.
- Change query key type to match with documentation (string | any[]).
- Remove react-query.mjs in favor of unbundled ESM files.
- QueryCache and Query async methods should throw and hook methods should not.
Query:
- Rename clear() to remove().
- Remove refetch() in favor of QueryObserver.refetch(). The refetch() method on Query is redundant as the functionality is the same as fetch().
- Remove subscribe() as it is only used in the tests.
- Remove fetchMoreVariable argument from fetchMore() in favor of FetchMoreOptions.
QueryCache:
- Remove global query cache.
- Remove makeQueryCache in favor of new QueryCache().
- Remove resetErrorBoundaries().
- Remove prefetch() options (force/throwOnError).
- Rename prefetchQuery() to fetchQuery().
- Change isFetching to isFetching() and do not store state.
- Remove true predicate option from getQueries() in favor of undefined.
ReactQueryCacheProvider
- Make usage required. (Non-breaking, documented)
- Do not create query cache automatically.
QueryObserver:
- Rename clear() to remove(). (Non-breaking deprecation)
Query Config:
- Remove forceFetchOnMount.
- Change refetchOnMount false behavior to disable refetch on mount for that specific hook
riccoski, mwmcode, JeDTr, matheuspoleza, kolyasapphire and 3 morericcoski, matheuspoleza, GuptaSiddhant, thaneliu and GB-Jonathonriccoski, nhducit, AugustoConti, tihuan, matheuspoleza and 3 morekamranayub, igor-pavlichenko, michaelhettmer, LucaColonnello, merodiro and 11 moredonatoaguirre24, adibfirman, kamranayub, Frumba, alanrsoares and 36 morericcoski, matheuspoleza and thaneliu
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededv3