-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve integration with Next.js #26561
Comments
@xaiborweb How would you solve the inlining of critical CSS in the |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Here is why
|
@oliviertassinari are the emotion docs also incorrect?
I assume that's what Chakra UI, the quoted example followed. |
@re-thc IMHO, yes, Emotion docs is incorrect. I understand the great DX in having SSR work without any configurations but it's great for end-ussers. A configuration step is required and it didn't stop styled-components to be popular. I'm closing we haven't identified further opportunities to improve the integration with Next.js |
🙈 Fix `<style>` elements bleeding into the document `<body>`, a place where they [do not belong](mui/material-ui#26561 (comment)) ℹ️ Removed Remix/React control of the entire document to drastically simplify emotion logic. This also means the Remix `meta`/`link` features no longer work -> [react-helmet](https://github.com/nfl/react-helmet) Closes #221
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
does this issue have any relation to the delay for styles to be applied on next js ssr? |
* perf: drop menu by @toolpad * fix: typo * chore: reput theme provider * fix: deprecate grid component sizes * fix: mui/material-ui#26561 (comment) * perf: simplify games tabs & pages * chore: fix styling * chore: padding drawer * fix: theme switch need colorSchemeSelector: 'data-toolpad-color-scheme' * chore: remove dead code * perf: remove dead code * fix: space power ^^ * chore: remove more code * perf: delay loading of toolbar entries * perf: delay more stuff in toolbarActions * chore: npm outdated * chore: remove dead code * perf: remove css rowGap by rowSpacing * perf: remove some "style" calls * perf: remove notistack * chore: reduce code on loadingButton * perf: reduce code on loading button * perf: simplify toggleMenu
Currently the version of next.js 10.2.3, does not recommend using getInitialProps, in addition to most frameworks to integrate them with next.js it is enough to import in _app.js and wrap <Component {... pageProps} />
But the example of integration of material-ui with next.js is more than 1 year old, it uses getInitialProps and forces us to edit _document.js in addition to adding an effect to _app.js to remove jssStyles.
I suggest if you could please review this and update the integration with next.js thanks.
The text was updated successfully, but these errors were encountered: