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

Icons from @mui/icons-material flashing on initial page load with next js page router #40543

Closed
RAllaverdyan-Sorenson opened this issue Jan 11, 2024 · 2 comments
Assignees
Labels
package: icons Specific to @mui/icons status: waiting for author Issue with insufficient information

Comments

@RAllaverdyan-Sorenson
Copy link

RAllaverdyan-Sorenson commented Jan 11, 2024

Steps to reproduce

Link to live example: (required)

Steps:
1.Integrate mui in next js page router as described in docs - https://mui.com/material-ui/guides/nextjs/
2. Use any icon from @mui/icons-material (I used HomeOutlined) in the component.

Current behavior

The used icon flickers on the whole screen on reload and the renders correctly

Expected behavior

No flickering of the icon.

Context

No response

Your environment

System:
OS: macOS 14.2.1
Binaries:
Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm
pnpm: Not Found
Browsers:
Chrome: 120.0.6099.216
Edge: Not Found
Safari: 17.2.1
npmPackages:
@emotion/react: 11.11.3 => 11.11.3
@emotion/styled: 11.11.0 => 11.11.0
@mui/base: 5.0.0-beta.31
@mui/core-downloads-tracker: 5.15.4
@mui/icons-material: 5.15.3 => 5.15.3
@mui/material: 5.15.3 => 5.15.3
@mui/material-nextjs: 5.15.3 => 5.15.3
@mui/private-theming: 5.15.4
@mui/styled-engine: 5.15.4
@mui/system: 5.15.4
@mui/types: 7.2.13 => 7.2.13
@mui/utils: 5.15.4
@mui/x-date-pickers: 6.18.7 => 6.18.7
@types/react: 18.2.47 => 18.2.47
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
styled-components: 6.1.8 => 6.1.8
typescript: 5.3.3 => 5.3.3

Search keywords: Icon flickering

@RAllaverdyan-Sorenson RAllaverdyan-Sorenson added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 11, 2024
@zannager zannager added the package: icons Specific to @mui/icons label Jan 11, 2024
@siriwatknp siriwatknp added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 20, 2024
@siriwatknp
Copy link
Member

Please provide a CodeSandbox or a repository that we can reproduce.

Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: icons Specific to @mui/icons status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants