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

Add SSR support #2219

Open
KyleAMathews opened this issue Jan 7, 2025 · 0 comments
Open

Add SSR support #2219

KyleAMathews opened this issue Jan 7, 2025 · 0 comments

Comments

@KyleAMathews
Copy link
Contributor

The basic pattern is that when server rendering, the resolved shapes' data is serialized to the HTML as JSON and then hydrated into shapes again when the client is setup.

We can modify getShape in the client so that when it creates a new shape, it first looks to the HTML for serialized shape data.

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

1 participant