Why does this minimal client component render 2x just on load? #83888
Answered
by
icyJoseph
dsign-phil
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Sep 17, 2025
Replies: 1 comment 1 reply
-
In Dev Mode, React's Strict Mode is enabled. https://react.dev/reference/react/StrictMode Verify that this doesn't happen in prod, or try disabling |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dsign-phil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Dev Mode, React's Strict Mode is enabled. https://react.dev/reference/react/StrictMode
Verify that this doesn't happen in prod, or try disabling
reactStritctMode
innext.config.js
, https://nextjs.org/docs/app/api-reference/config/next-config-js/reactStrictMode