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
[ ] the form state managed and ready to send to the backend
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