Skip to content

Commit

Permalink
keep the client component checking patch
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Aug 30, 2022
1 parent 5df6115 commit f0a6372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/server/app-render.tsx
Expand Up @@ -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
Expand All @@ -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 = {
Expand Down

0 comments on commit f0a6372

Please sign in to comment.