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 for VRaw
#3245
Hydration for VRaw
#3245
Conversation
Visit the preview URL for this PR (updated for commit 91baa21): https://yew-rs-api--pr3245-feature-vraw-hydrati-m3nfegni.web.app (expires Sun, 30 Apr 2023 08:33:36 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
888c9ea
to
621d4f3
Compare
Size Comparison
✅ None of the examples has changed their size significantly. |
Benchmark - SSRYew Master
Pull Request
|
621d4f3
to
a2518b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this awesome pull request!
I was wondering about how to hydrate the vraw with the current design and is very glad that someone can come up with a working way to hydrate them.
You can refer to the existing hydration tests to create tests for raw hydration.
(The clippy error is probably not related to this one so I will fix it in a separate pull request.)
a2518b1
to
929dde7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation looks good to me.
However, before we merge this, could you please add a couple test cases?
Yes, will do! Hopefully today :) |
cc8eac0
to
666bb16
Compare
666bb16
to
91baa21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was originally an oversight on my part when I initially added this. Thanks for fixing it, really appreciate it!
Description
Implemented hydration for
VRaw
by re-using theCollectable
workaround that theSuspense
component also uses.Also used theDOMParser
for parsing raw HTML into nodes.As I don't really know what I'm doing I'd like for someone to verify whether this is correct. It does work for our application but that doesn't say much. Also, I can imagine that we want tests for this as well. Any ideas on that?
Fixes #2969
Checklist