qwik icon indicating copy to clipboard operation
qwik copied to clipboard

[📖] Explain more for how to use the "previous form data"

Open wtlin1228 opened this issue 2 years ago • 2 comments

Suggestion

The action.formData API behaves differently depending on the presence of params.qaction in the URL. When this parameter is not present, the API returns undefined.

In situations where the JavaScript is disabled and the form is submitted for the first time, params.qaction is added to the URL, and action.formData is updated with the form's data. Subsequent submissions with different values also update action.formData.

However, when JavaScript is enabled again, action.formData stops getting updated. This behavior can be confusing, and it requires a more thorough explanation. Could you provide additional context or details about this issue?

ref: https://qwik.builder.io/docs/action/#previous-form-state

wtlin1228 avatar Apr 20 '23 17:04 wtlin1228

Hi @wtlin1228 👋 Thanks a lot for this inputs! would you have time to create a PR for the first iteration of improvements in that regard? 😄

zanettin avatar Apr 26 '23 21:04 zanettin

Yes, I would be happy to create a PR for it.

wtlin1228 avatar Apr 27 '23 03:04 wtlin1228

Hi @wtlin1228 👋 Just wanted to check-in real quick to ask, if you're still interested in providing a PR for this topic 👼 would be very much appreciated 🙏

zanettin avatar May 18 '23 20:05 zanettin

Hi @wtlin1228 👋 Just wanted to check-in real quick to ask, if you're still interested in providing a PR for this topic 👼 would be very much appreciated 🙏

Thank you for reaching out! I would love to contribute a PR for this topic. However, I wanted to inform you that I am currently on a three-week vacation . As soon as I return next week, I will be more than happy to work on it. 😁

wtlin1228 avatar May 19 '23 01:05 wtlin1228

Hi @wtlin1228 👋 oh that sounds nice 🏝️ no hurries at all! just wanted to ask if u r still interested and have some time. thank you very much for helping on this 🙏

zanettin avatar May 19 '23 03:05 zanettin