fix: Prevents undefined features flags on first render (#9374)
parent
bfb5a31032
commit
9af621294d
|
@ -26,6 +26,8 @@ export async function ssrInit(context: GetServerSidePropsContext) {
|
||||||
|
|
||||||
// always preload "viewer.public.i18n"
|
// always preload "viewer.public.i18n"
|
||||||
await ssr.viewer.public.i18n.fetch();
|
await ssr.viewer.public.i18n.fetch();
|
||||||
|
// So feature flags are available on first render
|
||||||
|
await ssr.viewer.features.map.prefetch();
|
||||||
|
|
||||||
return ssr;
|
return ssr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue