Commit 7ebe125
committed
docs(rtk-query): Clarify standard slice exports
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.1 parent c303b1f commit 7ebe125
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments