-
Notifications
You must be signed in to change notification settings - Fork 53
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
Hydration not working when not using self-closing tag #38
Comments
the issue is almost certainly with this regex -
if i think a little bit its understandable why children are not supported - hard to draw the line between what is hydrated and what isnt. we should add a regex for the non-self-closing case and insert an error if found, should be quite cheap. |
ok nice. just note that people might try to insert children in those components too, so the regex may have to accommodate that (i honestly dont know if this is possible) and optionally give a nice reason why we dont allow children in hydrated components |
Here is the improved error text:
|
love it |
Just starting out with Elderjs, but I ran into a weird issue.
This won't hydrate on the client:
...but this will:
I'm working with the v0.2.0 template.
The text was updated successfully, but these errors were encountered: