Replies: 1 comment
-
Currently it's expected that you return all messages from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My site have a big internationalized messages because there are many pages, I see the getRequestConfig is load full messages in the demo. So i got a big data when page initialization,this affects the speed of response. I tried to load by the current page.
It works fine when the page first loads, But when redirect the page, Or use your browser's forward and backward,The text is lost.
I debugged it and found the problem: When redirect/forward/backward The layout.tsx was not executed, so the getRequestConfig was not invoked. there intl message is not newest,this resulted in the loss of messages on my page.
How should I solve this problem? Or is there a better solution for loading messages on a per-page basis?
Beta Was this translation helpful? Give feedback.
All reactions