We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Preact's hydrate will clear uncontrolled property(e.g., defaultValue="12"), this is wrong
defaultValue="12"
We could see that defaultValue="12" is cleared by client's hydrate.
I'm not sure if this is a fresh bug.
https://fresh-demo-ahuigo.deno.dev/react/hello
https://github.com/ahuigo/fresh-demo/blob/hydrate-bug/islands/react/hello.tsx
The text was updated successfully, but these errors were encountered:
This doesn't appear to be a hydration bug actually, as hydration shouldn't diff props, but a bug in Preact's render diffing I think.
To reproduce: Repl
Looks like render() will update the defaultValue prop but clear value
render()
defaultValue
value
Sorry, something went wrong.
No branches or pull requests
Preact's hydrate will clear uncontrolled property(e.g.,
defaultValue="12"
), this is wrongI'm not sure if this is a fresh bug.
Demo:
https://fresh-demo-ahuigo.deno.dev/react/hello
Source code:
https://github.com/ahuigo/fresh-demo/blob/hydrate-bug/islands/react/hello.tsx
The text was updated successfully, but these errors were encountered: