Skip to content

Conversation

@BonaventureCJ
Copy link
Contributor

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.

Thanks for the PR!

To better assist you, please select the type of PR you want to create.

Click the "Preview" tab above, and click on the link for the PR type:

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.
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@netlify
Copy link

netlify bot commented Dec 13, 2025

Deploy Preview for redux-docs ready!

Name Link
🔨 Latest commit 7ebe125
🔍 Latest deploy log https://app.netlify.com/projects/redux-docs/deploys/693d5ed10a0eae0008cc51f9
😎 Deploy Preview https://deploy-preview-4833--redux-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant