Handling inputs before mount when using SSR #2030
Unanswered
bavjackson
asked this question in
Q&A
Replies: 1 comment
-
|
Disabling the inputs until mount is also possibly an option, as I think my current setup doesn't have any progressive enhancement for non js environments, but also feels like a hack. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using SSR the form is displayed immediately, but any input a user makes before the form is properly hydrated are overwritten when the input is blurred. Right now this is happening about 30% of the time in my tests.
Is there any way for the form component to pull an existing value off any inputs using refs or something on mount? Adding a few ms of sleep in my test might help with this but it's kind of annoying and probably could impact users with slow internet connections too.
video.webm
Beta Was this translation helpful? Give feedback.
All reactions