Skip to content

Commit

Permalink
RSC: Tweak comment in vite/client (#10240)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Mar 16, 2024
1 parent cc79787 commit 9ede22c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vite/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ const BASE_PATH = '/rw-rsc/'
export function renderFromRscServer<TProps>(rscId: string) {
console.log('serve rscId', rscId)

// Temporarily skip rendering this component during SSR
// I don't know what we actually should do during SSR yet
// TODO (RSC): Remove this when we have a babel plugin to call another
// function during SSR
if (typeof window === 'undefined') {
// Temporarily skip rendering this component during SSR
return null
}

Expand Down

0 comments on commit 9ede22c

Please sign in to comment.