-
Notifications
You must be signed in to change notification settings - Fork 74
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
When user submits answer, goes to next question, and comes back, the state doesn't remain #108
Comments
I'm curious as to what the best solution to this is. I actually want to say that we should allow users to re-answer questions if they want to (say they want to review or something), but I agree that there should be some indicator that the user has interacted with that question before, like a banner indicating as such? What do you think? |
I definitely think that users should be able to re-answer as many times as they like. But I think users would want to remember what they answered. Especially when they go to the next question and then go right back. Maybe we could have a "reset" option that wipes away the state. This option would be for users who are using it like a quiz. |
would it be possible to implement like a Map() as a state, with the key : value pair to be problem ID : selected answer? |
I don't think we will have to use a Map. The We could save this info in Or we could make a whole new object that only has My personal opinion is that we should save it in |
If the user answers a questions (correctly or incorrectly), the state of that page should not be any different than it was when they left.
The text was updated successfully, but these errors were encountered: