Packages

@reduxjs/toolkit

2.13.0 · 29 Sep 2026MIT45.8M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.2

5 Oct 2021Where it was published

1.9.7 is the newest release of 1.x.

In short

1 new4 fixed

Release note

This release fixes several small issues with RTK Query, as well as a regression in the createAsyncThunk types and an issue with sourcemap URLs.

Changelog

RTK Query Fixes

The isLoading flag should only ever be true on the first run of a hook, but would sometimes briefly flip to true on later calls. That should now stay the correct value.

fetchBaseQuery should now work properly when used in conjunction with node-fetch.

The BaseQueryApi object now correctly includes the extra argument that was provided when configuring the thunk middleware, if any.

Other Fixes

Sourcemap URLs should now be correct, especially for the CommonJS build artifacts.

createAsyncThunk's types have been updated to correctly infer return values when working with enums.

Lots of assorted docs tweaks and updates!

What's Changed

  • Add extra to BaseQueryApi

  • Point sourceMappingURL to correct sourcemaps in build artifacts

  • createAsyncThunk union return values fall back to allowing only single member

  • Fix fetchBaseQuery for usage with node-fetch

  • Fix "isLoading briefly flips back to true" #1519