[joy-ui][docs] Add Next.js App Router instructions on how to prevent flickering #42514
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added Next.js App Router instructions on how to prevent Flickering on first load.
Tested, works.
Preview:
![preview](https://private-user-images.githubusercontent.com/84281349/335806238-ebb9ac68-7e94-434c-869b-539e0bb65bc2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3NTY4MzEsIm5iZiI6MTcyMzc1NjUzMSwicGF0aCI6Ii84NDI4MTM0OS8zMzU4MDYyMzgtZWJiOWFjNjgtN2U5NC00MzRjLTg2OWItNTM5ZTBiYjY1YmMyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDIxMTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlOGRlOTM3ZTY2Yzg3YmNhYTBmNDM1MWM4YTczMzEzNGQxNjM0NWQ5YzFjMzEzMTgyNGVmNTBkNmYxYmE3ZWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GZ5LwqrhOlGJ1YIJRiVPvdKRJH_dq3xGeODRBys0Nqc)
https://deploy-preview-42514--material-ui.netlify.app/joy-ui/customization/dark-mode/#next-js-app-router
PS:
![image](https://private-user-images.githubusercontent.com/84281349/336207620-c9036e6c-5f9e-44cb-8ea6-09e1f2ca8f3d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3NTY4MzEsIm5iZiI6MTcyMzc1NjUzMSwicGF0aCI6Ii84NDI4MTM0OS8zMzYyMDc2MjAtYzkwMzZlNmMtNWY5ZS00NGNiLThlYTYtMDllMWYyY2E4ZjNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDIxMTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxZmFiYTY3YzUxOTZmMmQzMDQ4NGZhMjMxY2QwYzdiNzg2ZjFkZTNmNmU4MzJlNDkyNDBhZDQ2NTU0YmZiNWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RIDNKUy8tTHqcIU5eSlu4fEzsaWIEPukQCre9CnOXkQ)
danilo-leal asked to change the target base to
next
, and I didn't manage to do it in previous Pull Request - as expected x). Anyways, thanks Danilo!Previous Pull Request