fix: Prevents undefined features flags on first render (#9374)

This commit is contained in:
Omar López
2023-06-07 02:03:52 +00:00
committed by GitHub
parent bfb5a31032
commit 9af621294d
+2
View File
@@ -26,6 +26,8 @@ export async function ssrInit(context: GetServerSidePropsContext) {
// always preload "viewer.public.i18n"
await ssr.viewer.public.i18n.fetch();
// So feature flags are available on first render
await ssr.viewer.features.map.prefetch();
return ssr;
}