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

NextJS - Refresh glitch with components in the TetrislyProvider #149

Open
elvisdcgoncalves opened this issue May 21, 2024 · 0 comments
Open

Comments

@elvisdcgoncalves
Copy link

Hi,

I have a NextJS proof of concept starter project.

I have added Tetrisly to this project, on 2 separate pages.

On each page i simply display Tetrisly components H1 and Button and they display just fine, but if i hit the refresh button of the browser (Chrome) you can see that the components are rendered unstyled for half a second and then the Tetrisly styles are applied.

If you then navigate between the 2 pages using the buttons on the page, you do not see this visual glitch because of how NextJS loads a page using the Link component.

On the second page (/test), i have also added MuiButtons and they render fine on a browser refresh, but the Tetrisly components are rendered unstyled first and the styles once the refresh of the page is completed.

Here is a link to my public github repo to reproduce this issue: https://github.com/elvisdcgoncalves/poc-tetrisly

Thank you in advance for your help!

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

No branches or pull requests

1 participant