tiki / dashboard

Administrative dashboard for management of mytiki.com resources
https://mytiki.com
0 stars 0 forks source link

Manage report form state #111

Closed MiroBenicio closed 1 week ago

MiroBenicio commented 1 week ago

User Story

106

Description

We need to manage the state of the steps to ensure all data is sent to the endpoint at the final step.

There are two possible solutions:

Use props and emits to manage the data at the parent component. In this approach, all data will be collected in the parent, and at the last step, an emit event can trigger the API call.

Use Pinia to create a global state, which will be updated at each step, allowing us to send all data when the final step is reached.

Acceptance Criteria