Packages

@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…

Other targets from 1.5.1Newest 1.x1.9.7Latest2.13.0
  1. 1.5.1yours
  2. 1.6.0target
0
changes to make
0
advisories fixed
3
new
0
fixes

Release by release

  1. 1.6.0

    7 Jun 20213 new
    • new

      pending: there is a new getPendingMeta({arg, requestId}) callback that can be passed as part of the createAsyncThunk options object. This is necessary because the pending action is dispatched before the payload creator is even called.

    • new

      fulfilled: there is a new fulfillWithMeta utility in the payload creator's thunkApi object, which can be used instead of returning the payload directly: return fulfillWithMeta(actualPayload, meta)

    • new

      rejected: the existing rejectWithValue utility now also accepts a meta argument: return rejectWithValue(failedPayload, meta)

14 other lines we could not sort, mostly version bumps
  • 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 createSlice and createAsyncThunk APIs

    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 data and isLoading fields 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

    1.6.0

4 internal lines (docs, tests, tooling) left out.