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
I trying to remove the translations resources from pageProps at GSP/GSSP by resetting _nextI18Next.initialI18nStore = null right after serverSideTranslations + use http(and local storage) backends to load the resources from browser.
All work without errors, but on client its flashing with not translated texts after load.
Is it possible to wait for the resources loaded before first re-render at client?
Also, I noticed the app try load resources on every page. The resources not changes(the same for all pages/app), so it is fine to load it only once. Currently I use local storage backend to avoid double network requests, but what about detecting they loaded already?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I trying to remove the translations resources from pageProps at GSP/GSSP by resetting
_nextI18Next.initialI18nStore = null
right afterserverSideTranslations
+ use http(and local storage) backends to load the resources from browser.All work without errors, but on client its flashing with not translated texts after load.
Is it possible to wait for the resources loaded before first re-render at client?
Also, I noticed the app try load resources on every page. The resources not changes(the same for all pages/app), so it is fine to load it only once. Currently I use local storage backend to avoid double network requests, but what about detecting they loaded already?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions