Skip to content

Conversation

@BonaventureCJ
Copy link
Contributor

@BonaventureCJ BonaventureCJ commented Dec 2, 2025

Correct the documentation for the PostsList component to use the type-safe useAppDispatch hook.

The example previously used the untyped useDispatch hook from react-redux. The corrected version reflects the recommended approach for working with Redux Toolkit and TypeScript, which provides stronger type-checking and improved developer experience.


name: 📝 Documentation Fix
about: Fixing a problem in an existing docs page

Checklist

  • Is there an existing issue for this PR?
    • link issue here
  • Have the files been linted and formatted?

What docs page needs to be fixed?

  • Section:
  • Page:

What is the problem?

What changes does this PR make to fix the problem?

Correct the documentation for the `PostsList` component to use the type-safe `useAppDispatch` hook. The example previously used the untyped `useDispatch` hook from `react-redux`. The corrected version reflects the recommended approach for working with Redux Toolkit and TypeScript, which provides stronger type-checking and improved developer experience.
@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 2, 2025

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 2, 2025

Deploy Preview for redux-docs ready!

Name Link
🔨 Latest commit bf9e2ce
🔍 Latest deploy log https://app.netlify.com/projects/redux-docs/deploys/692f51ace599b800089241a6
😎 Deploy Preview https://deploy-preview-4823--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.

@aryaemami59 aryaemami59 merged commit a9fffe9 into reduxjs:master Dec 2, 2025
12 checks passed
@aryaemami59
Copy link
Member

Thanks!

@BonaventureCJ BonaventureCJ deleted the patch-3 branch December 2, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants