Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questionnaire restarts every time the frontend page is reloaded #35

Open
Mala1180 opened this issue Dec 20, 2024 · 1 comment
Open

Questionnaire restarts every time the frontend page is reloaded #35

Mala1180 opened this issue Dec 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Mala1180
Copy link
Member

Problem

Every time the frontend page is reloaded, questionnaire starts again from the first question, even if the questionnaire is compiled up to (for example) the third question.

Proposal

Frontend page should make a GET /questionnaire (full questionnaire compiled so far) to understand which is the current step.

@Mala1180 Mala1180 added the bug Something isn't working label Dec 20, 2024
@jessc93
Copy link
Collaborator

jessc93 commented Jan 10, 2025

The issue causing the questionnaire to reset on each page reload is due to the fact that the GET /questionnaire request has not been implemented yet. Currently, we're using Zustand to manage a mock state, as the backend is still a work in progress. Once the backend is fully functional, the GET request can be implemented to retrieve the questionnaire data and determine the current step. I recommend not proceeding with this implementation until the backend is stable to avoid any synchronization issues.
@Mala1180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants