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

Integrate SSR #65

Open
sviridoff opened this issue Apr 24, 2023 · 1 comment
Open

Integrate SSR #65

sviridoff opened this issue Apr 24, 2023 · 1 comment

Comments

@sviridoff
Copy link

Hi! I am interested in learning the appropriate strategy to use RSC in combination with SSR. Currently, I am attempting to hydrate the DOM with the result of the RSC, but I am encountering an error that mismatches the result. I am not sure if the strategy I am attempting is correct or not. Could you please provide some guidance? To illustrate the issue, I have created a demo project, which you can find here: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo. As you can see, I have hardcoded the result of the RSC directly in the HTML file here: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo/blob/main/public/page.html. Here is how I am attempting to hydrate it: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo/blob/main/src/bootstrap.tsx#L15

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

No branches or pull requests

2 participants