Skip to content

Conversation

@jplhomer
Copy link
Contributor

@jplhomer jplhomer commented Mar 9, 2022

WIP, based off the original in #758

Required a couple modifications to our (unmerged) Vite RSC plugin: https://github.com/jplhomer/react/tree/rsc-vite to support server context.

A few issues we're already seeing here:

  • useContext doesn't throw anymore, so we can't rely on that as a mechanism for isomorphic server-only context. Need to find some other way to determine when we're in a RSC runtime - maybe flip the order so we try to read from cache (which fails) first?
  • Seeing duplicated client component modules (context) again 😭

@jplhomer jplhomer changed the base branch from fd-update-react-experimental to v1.x-2022-07 March 9, 2022 18:31
Comment on lines +42 to +43
"react": "^0.0.0-experimental-a59f53a60-20220308",
"react-dom": "^0.0.0-experimental-a59f53a60-20220308",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops these should be pinned without carrots

nonce,
});

await ssrReadable.allReady.then(() => onCompleteAll.resolve(null));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should remove the await here

@jplhomer jplhomer closed this Mar 18, 2022
@jplhomer jplhomer deleted the jl-fd-update-react-latest branch March 18, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants