SIGN IN SIGN UP
reduxjs / redux UNCLAIMED

A JS library for predictable global state management

0 0 125 TypeScript

docs(rtk-query): Clarify standard slice exports (#4833)

The existing documentation implies that standard slices *only* export
action creators and reducers. This can create confusion when users
compare this with fuller implementations within the codebase, such as
the `postsSlice.ts` example shown earlier in Part 6.

That file demonstrates that robust slices require exporting additional
items like async thunks, types, selectors, and listener middleware.

This change updates the wording to clarify that the original statement
refers to the *minimal* exports needed from `createSlice`, providing
better and unambiguous context before contrasting with `createApi`
exports.
B
Bonaventure C. J. Ugwu committed
b24044ec70611bb8263c5598e4a23538e89412fc
Parent: 99d3e45
Committed by GitHub <noreply@github.com> on 1/22/2026, 1:36:23 PM