github reduxjs/redux-toolkit v2.11.2

one day ago

This bugfix release updates the AbortSignal handling to fall back if DOMException isn't available (such as RN environments), and updates the TypedUseInfiniteQueryHookResult type to correctly include fetchNextPage/fetchPreviousPage fields.

Changelog

Bugfixes

The AbortSignal changes in 2.11.1 used DOMException in a couple places to match the expected behavior of AbortSignal, but turns out that's not available in environments like React Native. We've updated the logic to fall back to a plain Error if DOMException isn't available.

The TypedUseInfiniteQueryHookResult type wasn't correctly including the fetchNextPage/fetchPreviousPage fields, and now it does.

What's Changed

  • fix: use a normal Error when DOMException isn't available by @EskiMojo14 in #5161
  • Include page functions in TypedUseInfiniteQueryHookResult by @markerikson in #5165

Full Changelog: v2.11.1...v2.11.2

Don't miss a new redux-toolkit release

NewReleases is sending notifications on new releases.