Closed
Description
Discussed in #69436
Originally posted by nicole0707 August 29, 2024
Goals
Currently Next.js sends the payload and state of server actions with Redux DevTools by default in production:
- https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/action-queue.ts#L89
- https://github.com/vercel/next.js/blob/canary/packages/next/src/client/components/use-reducer-with-devtools.ts#L121
However, We encountered an issue when attempting to serialise BigInt in Redux DevTools(related issue). The issue breaks our apps in production if users have Redux DevTools installed. There is no estimated time for fixing the issue.
Non-Goals
No response
Background
Next.js could provide developers with the flexibility to enable Redux DevTools on demand based on the different environments, such as development or production.
Proposal
My proposal is to add a new environment variable for enable useReducerWithReduxDevtools.
Metadata
Assignees
Labels
No labels
Activity