-
Notifications
You must be signed in to change notification settings - Fork 10
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
Issue with styles injected into select element #56
Comments
wondering why they are not wrapped in a style block. Probably they are in "raw HTML", but invalid tag is removed lated in the browser. Please check how two sources match eachother.
And yeah, there is a solution. We just need to make tracking a little bit smart and account not only for style tags, but for script(which can be very long) or ➡️ |
anything we can do to fix this? it is quite annoying because i get a lot of hydration errors recently due to this. |
With not all tags being "self closed" it's a little hard to "count" them in order to understand is it a good moment to dump styles.
In both cases there is question "what to delay"
I think the second one is better, and it's implementation gravitates towards Thougths? |
You would know better how to fix it properly. When it comes to allow list vs. block list, a block list (the second option) sounds more reasonable to me intuitively. It also builds on what we already implemented for avoiding nested about the delaying of content, i am not so sure if we should go that route, because it messes with the original stream (at least ro my limited understanding, correct me if I am wrong). so, i think i would go with the second option and (as a first step) just delay the styles. |
Some experimentation is needed here. Cannot promise any quick resolutions. |
as a starting point, here is a failing test #57 |
Another issue popped up, where styles are injected into a
<select>
element, but are not wrapped into a<style>
tag, which meansmoveStyles
won't recognize them, so they are not moved into head before hydration, and therefore breaking hydration.Anything we can do about this to fix it? :)
The text was updated successfully, but these errors were encountered: