Skip to content

React18 cache global style order incorrect. #2741

Closed
@iDerekLi

Description

@iDerekLi

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"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions