Skip to content

examples(with-redux): update to Next 16, React 19, RTK 2.12 - #98924

Open
markerikson wants to merge 1 commit into
vercel:canaryfrom
markerikson:examples/with-redux-rtk2-update
Open

markerikson wants to merge 1 commit into
vercel:canaryfrom
markerikson:examples/with-redux-rtk2-update

Conversation

@markerikson

Copy link
Copy Markdown

The with-redux example hasn't been touched in a couple years. I'm doing an update of our own templates and examples, and wanted to bump it to work with Next 16 and the latest Redux packages:

  • Fix app/api/counter/route.ts: drop the hand-written Context type (params: undefined) that fails type-checking on Next 15+, where params is a Promise
  • Bump react/react-dom and @types/react* to 19, @reduxjs/toolkit to ^2.12, react-redux to ^9.3, typescript to ^5 (matching create-next-app defaults)
  • Set moduleResolution to bundler and add .next/dev/types to include, as next build now requires

Thanks!

- Fix app/api/counter/route.ts: drop the hand-written Context type (params: undefined) that fails type-checking on Next 15+, where params is a Promise
- Bump react/react-dom and @types/react* to 19, @reduxjs/toolkit to ^2.12, react-redux to ^9.3, typescript to ^5 (matching create-next-app defaults)
- Set moduleResolution to bundler and add .next/dev/types to include, as next build now requires
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