Skip to content
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

React18 cache global style order incorrect. #2741

Closed
iDerekLi opened this issue Apr 29, 2022 · 1 comment
Closed

React18 cache global style order incorrect. #2741

iDerekLi opened this issue Apr 29, 2022 · 1 comment

Comments

@iDerekLi
Copy link

Current behavior: React18 cache global style order incorrect.

To reproduce:

  1. curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/nextjs
  2. cd nextjs
  3. yarn && yarn dev

Expected behavior: In the correct order.

This is React18.
image

This is React17.
image

Environment information:

  • react version: 18.1.0
  • @emotion/react version: 11.7.1
{
    "@emotion/cache": "^11.7.1",
    "@emotion/react": "^11.7.1",
    "@emotion/server": "^11.4.0",
    "@emotion/styled": "^11.8.1",
    "@mui/icons-material": "^5.6.2",
    "@mui/material": "^5.6.2",
    "react": "^18.1.0",
    "react-dom": "^18.1.0"
}
@Andarist
Copy link
Member

It looks like a duplicate of #2725 . I've confirmed that this is fixed with [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants