anggoran
Partial with Forms
These are what I got from the discussion:
Native form need to redirect after server side submission, while partial do client-side navigation. So using form with partial helps us to do server-side data handling with client-side state update, with to-be-inserted html as a response.
Partial isn't just conditional in initial state or island. It doesn't refresh full page, only update necessary parts.
15 replies
Passing Data in Fresh
For the logic, it's like:
1. Get the question.
2. Fill in the answer.
3. Submit the form.
4. Match answer to solution.
5. Return if it's correct / wrong.
6. Render the result without refresh.
7. Clear state, move on to the next question.
17 replies