Open erzr opened 4 years ago
Deployed Netlify example here: https://jovial-fermat-4a0934.netlify.com/
forceRefresh
<Router location={path} context={{}} forceRefresh={true}>
delete state.viewBag;
this.updateLanguage();
RouteHandler
i18ninit(__JSS_STATE__.sitecore.context.language, __JSS_STATE__.viewBag.dictionary)
Yep, that did it! Working my end now 🙌 Thanks @erzr
Deployed Netlify example here: https://jovial-fermat-4a0934.netlify.com/
forceRefresh
set to true on router AppRoute.js<Router location={path} context={{}} forceRefresh={true}>
delete state.viewBag;
in server.jsthis.updateLanguage();
inRouteHandler
i18ninit(__JSS_STATE__.sitecore.context.language, __JSS_STATE__.viewBag.dictionary)
to disable dictionary call