-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
[1.1.0-rc.x] Screen flickering on next/prev #208
Comments
Please provide a reproduction so I can debug the issue. |
Doesn't this happen with the examples from the repo? |
No, but the example is very minimal and doesn't have any CSS/complex layout. So I'm not sure if it's because of the |
Hmm, wait a minute please. |
You're using I added a |
Oops! You're right. I messed up when replacing
:/ |
https://youtu.be/T3m-MZkuadU?t=544 |
I've released this change in It seems to work but also seems a bit hacky. |
I tried it, and it seems that it works perfectly.
I don't understand the try/catch block in this commit. |
Well... If I refresh the page, and then use next/prev buttons, the screens flickering are back. :/ (It only occurs when I browse a new page with the "prev" button in this scenario.) |
React's I added a try catch to fallback to loading the locale as before, without using
Just noticed that, but it seems to only "flicker" (= trigger the |
This is weird... |
Found the root cause: this next-international/packages/next-international/src/app/client/create-use-current-locale.ts Line 9 in e2821cd
I don't know how to fix this though. This also means we'll no longer need |
I published |
I still get flashes when I refresh the page, then use the next/prev buttons. Does the |
Also, when I change the locale (using |
That is expected, similar to the explanation at the bottom. You shouldn't get any "flash" while navigating then going forward/backward during the same session (= not refreshing).
This is a drawback of using |
Hello!
Ikr, and I'm curious to know if this doesn't change things for the worse.
So, why discontinue the use of |
To recap: the last issue is forward/backward navigation immediately after refreshing the page. Normal navigation and Static Rendering are both working as expected. Tbh, this last issue doesn't feel like a huge problem to me. I personally almost never refresh a website, then go forward/backward without navigating to a page. |
Eeyup, I finally figured it out before I went to sleep, and finally I thought I'd misunderstood again.
I agree. |
Closing thanks to #205, will be released during this week officialy. |
When I use:
"next-international": "1.1.0-rc.1"
I get screen flickering when I use the "next" and "previous" buttons of my browser.
2023-10-01.12-15-19.mp4
This bug does not occur when I use:
"next-international": "^1.0.1"
The text was updated successfully, but these errors were encountered: