#input elements become empty upon hydration
1 messages · Page 1 of 1 (latest)
ok so before hydration user changed the input value,
then during hydration solid reads from the signal bound to the value prop, and changed the input value to what’s in it.
which is an empty sting-the initial value of the signal.
would this be correct?
If that’s the case, then “all” you need to do is to update the initial value of the signal to the current input value on the client. you might need to use a query selector to get the input ref, as the ref prop won’t be called yet
Also if you can reproduce that in a code sandbox, it may be worth making an issue for
it doesn’t sound right for the input value to be overridden by hydration