v2.6.1
This bugfix release fixes several assorted types issues with the initial infinite query feature release, and adds support for an optional signal argument to createAsyncThunk.
Changelog
Infinite Query Fixes
We've fixed several types issues that were reported with infinite queries after the 2.6.0 release:
matchFulfilledandprovidesTagsnow get the correct response types- We've added pre-typed
Type*types to represent infinite queries, similar to the existing pre-defined types for queries and mutations selectCachedArgsForQuerynow supports fetching args for infinite query endpoints- We fixed some TS type portability issues with infinite queries that caused errors when generating TS declarations
useInfiniteQueryState/Subscriptionnow correctly expect just the query arg, not the combined{queryArg, pageParam}object
Other Improvements
createAsyncThunk now accepts an optional {signal} argument. If provided, the internal AbortSignal handling will tie into that signal.
upsertQueryEntries now correctly generates provided tags for upserted cache entries.
What's Changed
- Fix assorted infinite query types by @markerikson in #4869
- Add providesTags handling for upsertQueryEntries by @markerikson in #4872
- add infinite query type support for selectCachedArgsForQuery by @alexmotoc in #4880
- add more Typed wrappers and make sure they're all exported by @EskiMojo14 in #4866
- Fix infinite query type portability issues by @markerikson in #4881
- support passing an external abortsignal to createAsyncThunk by @EskiMojo14 in #4860
Full Changelog: v2.6.0...v2.6.1