@reduxjs/toolkit
2.13.0 · 29 Sep 2026MIT45.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @reduxjs/toolkit From 1.5.1 to 1.6.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Release by release
- new
pending: there is a newgetPendingMeta({arg, requestId})callback that can be passed as part of thecreateAsyncThunkoptions object. This is necessary because thependingaction is dispatched before the payload creator is even called. - new
fulfilled: there is a newfulfillWithMetautility in the payload creator'sthunkApiobject, which can be used instead of returning the payload directly:return fulfillWithMeta(actualPayload, meta) - new
rejected: the existingrejectWithValueutility now also accepts ametaargument:return rejectWithValue(failedPayload, meta)
- new
14 other lines we could not sort, mostly version bumps
- 1.6.0
Tracking loading state in order to show UI spinners
- 1.6.0
Avoiding duplicate requests for the same data
- 1.6.0
Optimistic updates to make the UI feel faster
- 1.6.0
Managing cache lifetimes as the user interacts with the UI
- 1.6.0
The data fetching and caching logic is built on top of Redux Toolkit's
createSliceandcreateAsyncThunkAPIs - 1.6.0
Because Redux Toolkit is UI-agnostic, RTK Query's functionality can be used with any UI layer
- 1.6.0
API endpoints are defined ahead of time, including how to generate query parameters from arguments and transform responses for caching
- 1.6.0
RTK Query can also generate React hooks that encapsulate the entire data fetching process, provide
dataandisLoadingfields to components, and manage the lifetime of cached data as components mount and unmount - 1.6.0
RTK Query provides "cache entry lifecycle" options that enable use cases like streaming cache updates via websocket messages after fetching the initial data
- 1.6.0
We have early working examples of code generation of API slices from OpenAPI and GraphQL schemas
4 internal lines (docs, tests, tooling) left out.