Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Server Components #240

Closed
brillout opened this issue Dec 31, 2021 · 7 comments
Closed

React Server Components #240

brillout opened this issue Dec 31, 2021 · 7 comments
Labels
enhancement ✨ New feature or request

Comments

@brillout
Copy link
Member

In the context of Shopify's Hydrogen framework, Shopify developed a Vite plugin for React Server Components.

We should explore how we to integrate Vite/vite-plugin-ssr with React Server Components.

Contribution welcome, e.g.:

  • Developing a standalone Vite plugin for React Server Components (@frandiox told me that the plugin developed by Shopify is tightly coupled to Hydrogen).
  • Add a new examples/react-server-components to this repository.

See:

@frandiox
Copy link

The plugin developed in this PR is not coupled anymore with Hydrogen. Ideally anyone can use that plugin for RSC.

@brillout
Copy link
Member Author

brillout commented Nov 8, 2022

Latest discussion about Vite + RSC: Shopify/hydrogen#2225 (comment).

Edit: Shopify removed the disucssion.

@thomasgauvin
Copy link

The link you shared is currently 404ing, do you have an update on this situation? Seems like a dependency on Vite (vitejs/vite#4591) which depends on React (facebook/react#22952)? This is an awesome framework and it would be great if RSCs were supported

@brillout
Copy link
Member Author

Both Vite and the React team are interested. The main piece missing is updating facebook/react#22952 to the v2 convention.

There just needs someone championing this. @thomasgauvin if you're up for the task, definitely let us know.

@thomasgauvin
Copy link

thomasgauvin commented Mar 20, 2023

Thanks for letting me know! Taking this on isn't something that I can commit to at this time, though I plan to keep an eye on this. Any good resources you would share for someone looking to contribute to Vite plugins and this project?

@brillout
Copy link
Member Author

Vite's docs + poking around :-).

@brillout
Copy link
Member Author

Closing in favor of #735.

@brillout brillout closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants