Live Reset via SSE
Forms can be reset via a specific SSE event, meaning the server can tell the form to fetch a fresh version of itself.
Generally, you should allow users to control their forms dynamically through reactivity initiated by themselves, but there are cases where your form needs to act more like a live data display than a traditional CRUD form.
For example, imagine the following scenario:
- You want to allow users to generate a weekly report and see any updates as the process runs live.
- So you make a new
createpage where users can configure their report. - After the user specifies their report and hits
submit, they are re-directed to a view page. - The view page has a text-area component that shows logs as the report runs.
- You want those logs to update live as the report runs instead of requiring the user to refresh the page.
- Once the job completes, you flip a bit, and hide the live log view and display all the final fields.
SSE's for Iridium's forms allow you to achieve this live, instantly updating, data view.