From f0a637291400a0c3e8bd0f7433da45afb3aa534d Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Tue, 30 Aug 2022 19:48:07 +0200 Subject: [PATCH] keep the client component checking patch --- packages/next/server/app-render.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/server/app-render.tsx b/packages/next/server/app-render.tsx index 81b5bc6f2c82..b8ba02cc10f9 100644 --- a/packages/next/server/app-render.tsx +++ b/packages/next/server/app-render.tsx @@ -751,7 +751,7 @@ export async function renderToHTMLOrFlight( } // TODO-APP: pass a shared cache from previous getStaticProps/getServerSideProps calls? - if (layoutOrPageMod.getServerSideProps) { + if (!isClientComponentModule && layoutOrPageMod.getServerSideProps) { // TODO-APP: recommendation for i18n // locales: (renderOpts as any).locales, // always the same // locale: (renderOpts as any).locale, // /nl/something -> nl @@ -775,7 +775,7 @@ export async function renderToHTMLOrFlight( ) } // TODO-APP: implement layout specific caching for getStaticProps - if (layoutOrPageMod.getStaticProps) { + if (!isClientComponentModule && layoutOrPageMod.getStaticProps) { const getStaticPropsContext: | GetStaticPropsContext | GetStaticPropContextPage = {