Skip to content

Enabling Concurrent Mode in NextJS #10645

Answered by timneutkens
cyrus-za asked this question in Help
Discussion options

You must be logged in to vote

You can enable it as experimental under:

// next.config.js

module.exports = {
  experimental: {
    reactMode: 'concurrent'
  }
}

There is no way to do per-page opt-in as the React tree can't be rendered in two different modes (also the entrypoint is different).

So to start you should enable strict mode and make all pages are compatible:

// next.config.js
module.exports = {
  reactStrictMode: true
}

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
6 replies
@controversial
Comment options

@salazarm
Comment options

@salazarm
Comment options

@salazarm
Comment options

@controversial
Comment options

Answer selected by Timer
Comment options

You must be logged in to vote
4 replies
@devknoll
Comment options

@ghost
Comment options

@devknoll
Comment options

@controversial
Comment options

Comment options

You must be logged in to vote
2 replies
@hosmelq
Comment options

@EricKit
Comment options

Comment options

You must be logged in to vote
1 reply
@saminnet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
9 participants