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

Hydrate existing markup #42

Open
jimfranke opened this issue Oct 11, 2021 · 3 comments
Open

Hydrate existing markup #42

jimfranke opened this issue Oct 11, 2021 · 3 comments

Comments

@jimfranke
Copy link

How can I reuse existing markup from within the container that is being patched? I'm asking because I'm looking into SSR with hydration. Thanks!

@jimfranke
Copy link
Author

jimfranke commented Oct 14, 2021

I understand it's currently not supported. What would be needed to implement it?
@yelouafi

@yelouafi
Copy link
Owner

Sorry for being late.

You can serve plain HTML from the server but currently the library doesn't support hydrating an existing DOM tree, you'll need to replace the whole tree with a new one (I think it should be a fast operation in modern browsers)

@jimfranke
Copy link
Author

Would this be complex to implement in the current architecture? I think adding this would really make this already awesome library shine :)

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