Skip to content

Commit f0a6372

Browse files
committed
keep the client component checking patch
1 parent 5df6115 commit f0a6372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/next/server/app-render.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ export async function renderToHTMLOrFlight(
751751
}
752752

753753
// TODO-APP: pass a shared cache from previous getStaticProps/getServerSideProps calls?
754-
if (layoutOrPageMod.getServerSideProps) {
754+
if (!isClientComponentModule && layoutOrPageMod.getServerSideProps) {
755755
// TODO-APP: recommendation for i18n
756756
// locales: (renderOpts as any).locales, // always the same
757757
// locale: (renderOpts as any).locale, // /nl/something -> nl
@@ -775,7 +775,7 @@ export async function renderToHTMLOrFlight(
775775
)
776776
}
777777
// TODO-APP: implement layout specific caching for getStaticProps
778-
if (layoutOrPageMod.getStaticProps) {
778+
if (!isClientComponentModule && layoutOrPageMod.getStaticProps) {
779779
const getStaticPropsContext:
780780
| GetStaticPropsContext
781781
| GetStaticPropContextPage = {

0 commit comments

Comments
 (0)