You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When switching languages, the entire page refreshes. This happens in Next.js with the app router, whether using next-intl or directly storing the language in a cookie. This issue didn’t occur when using the page router before. How can I prevent the global refresh when switching languages in the app router?
The text was updated successfully, but these errors were encountered:
Hey, could you go into more detail with this issue?
Our testapp (https://github.com/tolgee/next-app-example) is using a server action, which invalidates cookie and that forces all server components to re-rendered. However there is no hard refresh (in traditional sense). I believe this is correct behavior.
When switching languages, I noticed that Test keeps refreshing as well. Is this the correct behavior? Is there any way to avoid the refresh of the Test component?
In my actual project, this refresh causes all requests on the page to be re-sent when switching languages, essentially re-rendering the page, even though the data is the same. This results in a poor user experience.
If there’s any solution, please let me know. Thank you! 🙏
When switching languages, the entire page refreshes. This happens in Next.js with the app router, whether using next-intl or directly storing the language in a cookie. This issue didn’t occur when using the page router before. How can I prevent the global refresh when switching languages in the app router?
The text was updated successfully, but these errors were encountered: