Next.js Discord

Discord Forum

error: detected multiple rerenders | generateStaticParams and using server

Unanswered
European sprat posted this in #help-forum
Open in Discord
European spratOP
env:
- next 13 app router
- a page like /blog/[slug]/page.tsx with generateStaticParams (GSP)
- a server action to create a comment on this page

when I click on the comment component to trigger the server action I get:
Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.


when I remove the server action, and leave GSP as-is, and instead target Nextjs API, the app is good.

when I remove GSP, and leave the server action, the app is good.

is this grounds for a bug?

0 Replies