Open shirotech opened 3 months ago
Anyone from the team that has insights on this? Is it a bug or misleading documentation?
So the formData is sent to the server, and that is when the persistence happens: when you serve a page, what you put in the formData is then provided to the next server POST.
So the persistence in the documentation only pertains to stepping through form pages.
If the user clicks on a link, there's no formData sent and then when they go to the form page again, it will be fresh.
During SPA, you can retain all the data in context so there is no problem.
But if you want to really persist data for no-js users, you'll have to use session cookies.
Is that clearer? Could you perhaps update the documentation so that it would have been clear to you from the start?
Which component is affected?
Qwik Runtime
Describe the bug
From the documentation: https://qwik.dev/docs/action/#previous-form-state
This suggests, there is some kind of data persistence, after I refresh the page, the value does not populate, even if I navigate from the router back and forth, data is also gone. Any help would be greatly appreciated. Thank you.
Reproduction
https://stackblitz.com/edit/qwik-starter-r1ebkb?file=src%2Froutes%2Findex.tsx
Steps to reproduce
npm install
followed bynpm run dev
(should be automatic)System Info
Additional Information
No response