4.0.0-alpha.1 (2021-12-07)
- v4 alpha (#3060) (b84681f), closes #3060 #2936 #2937 #2938 #2884 #2963 #2961 #2969 #2988 #2987 #2993 #2996 #3006 #3051 #3054 #3061
Features
- New Network Mode
- Mutation Cache Garbage Collection
- Tracked Queries per default
BREAKING CHANGES
- Query Keys (and Mutation Keys) need to be an Array
- Separate hydration exports have been removed
notifyOnChangeProps
property no longer accepts"tracked"
as a valuenotifyOnChangePropsExclusion
has been removed- Consistent behavior for
cancelRefetch
- New Query Filters
- Streamlined NotifyEvents
- The
src/react
directory was renamed tosrc/reactjs
onSuccess
is no longer called fromsetQueryData
persistQueryClient
and the corresponding persister plugins are no longer experimental and have been renamed- The
cancel
method on promises is no longer supported - Queries and mutations, per default, need network connection to run
- Removed undocumented methods from the
queryClient