Skip to content

andreasnuesslein/svelte-ssr-issue

Repository files navigation

this repo is demonstrating the problem where hydration of the page resets input fields

see sveltejs/svelte#1755

there are two ways to test this:

this is the easier way, but it has a context="module" block.

  • run npm run dev
  • go to http:https://localhost:5173/sleep
  • after waiting ~5 seconds until the form loads, enter something.
  • wait another 5 seconds.
  • the input field will be reset

the same problem can be reproduced without a context="module" block:

  • run npm run dev
  • open new tab
  • set web browser "Throttling" to Fast 3G
  • navigate to http:https://localhost:5173/
  • as soon as possible enter something in the input field
  • after input you can disable throttling again
  • the input field will be reset

npm run preview

both cases are also reproducable with npm run build && npm run preview. however I had to set it to "slow 3g" to be fast enough to catch it in the second case.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages