-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
VRaw is not hydratable #2969
Comments
@hamza1311 Can you maybe provide some insight on this? |
VRaw can't be hydrated because there's nothing to hydrate. It's a simple HTML string Maybe panicking is a bad idea. Would you mind PRing a fix to remove the panic? |
During hydration, one would still have to figure out the number of children to collect and perhaps in debug mode assert that the |
Check, that makes sense
Yes, will do by the end of this week! |
I will have a look. Are you okay with removing the panic first? Or do you want to implement this before that? |
I think simply removing panicking would not work as |
I implemented hydration for |
Problem
Now that #2842 is implemented we can finally use raw HTML using server-side rendering 🎉
Unfortunately, it seems like hydration is not supported at this time when using this feature.
I would like to understand why this is the case and as a follow-up question: should it be supported?
Steps To Reproduce
VNode::from_html_unchecked
VRaw is not hydratable (raw HTML string cannot be hydrated)
Expected behavior
The best outcome would be that hydration is supported but I have no clue wether that's possible.
Environment:
Questionnaire
s/have a solution/will probably figure it out as I got more information now/
The text was updated successfully, but these errors were encountered: