Skip to content

Integrate SSR #10

@sviridoff

Description

@sviridoff

Hello! Firstly, thank you for your effort. I found your explanation on how to integrate RSC into a common project very helpful in understanding the process better. Currently, I am working on an example which is fairly simple, but I am trying to figure out how to combine RSC with SSR. You can see the demo here: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo. I have replicated the RSC result hardcoded in the HTML file here: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo/blob/main/public/page.html#L12. However, when I try to hydrate it (https://github.com/sviridoff/rsc-webpack-swc-fastify-demo/blob/main/src/bootstrap.tsx#L16), it throws an error because it does not match the result. I'm not sure if the strategy I am attempting is correct, as I haven't found any examples to follow. Do you have any suggestions on a better strategy to hydrate an HTML with the result of the RSC? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions