Environment: server, client.

Implemented by: vike-react.

You need vike-react to be able to use the reactStrictMode setting.

By default vike-react wraps your Page component with <StrictMode> but you can opt-out:

// /pages/+config.js
 
import vikeReact from 'vike-react/config'
 
export default {
  // Don't use <StrictMode>
  reactStrictMode: false, 
  extends: [vikeReact]
}
⚠️

We recommend against opting-out of <StrictMode>: it ensures your app behaves as React expects which means much less potential bugs. (See React > <StrictMode>.)

See also