Styles messed up when going back using the chrome back button #17829
Replies: 6 comments
-
I don't believe this is an issue with Next from looking at the DOM between the broken and working states. If I had to guess it seems like owl carousel isn't being initialized properly or there is some other issue with the logic that renders the markup. On the broken page, the While on the working page, you'll see If you have a minimal reproduction of this in code that would be massively helpful in tracking this down. |
Beta Was this translation helpful? Give feedback.
-
I have tried this on a html + css + js only environment. No nextjs or react. Seems to work fine there. this is what my code is like. Membership.tsx
MembershipFeatures.tsx
FeatureCard.tsx
And this is how I initialise
|
Beta Was this translation helpful? Give feedback.
-
I had an issue like this, did you had a solution for that? |
Beta Was this translation helpful? Give feedback.
-
same here... |
Beta Was this translation helpful? Give feedback.
-
I can fix it if i add all components in first load js chunk, but chunk will be x2-4 size, that is not good. If someone will find proper solution, please share, i'll do the same. |
Beta Was this translation helpful? Give feedback.
-
same here.... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
All my pages are SSR. When I click on the browser back button, the styles get messed up. This is happening in chrome only. I have tried Safari and FireFox. both work fine.
Describe the bug
When I click the back button on the browser, the page style is not correct. the css file loads fine.
To Reproduce
Chrome version 86.0.4240.75 (macOS)
*** Sometimes there is no issue. but most of the time there is.
Expected behavior
Page should be rendered as usual.
Screenshots
System information
Additional context
Does not happen in dev mode. Happens only in production.
Beta Was this translation helpful? Give feedback.
All reactions