Skip to content

Implement loading spinner in question form #191

@18chowdhary

Description

@18chowdhary

Description

The Question Form takes a very long time to load - so long that it is noticeable to users and confuses them. To reduce this confusion, we tried to implement a loading spinner in the Question Form that displays while the questions are being set-up so that the user is informed that the questions are loading. However, we were not able to finalize the implementation of the loading spinner - specifically, the CountyDropdown causes an infinite re-render loop that makes the app crash. Through debugging, we have determined the issue may not be in the CountyDropdown; on the dev branch, which has the QuestionForm as a functional component without a loading spinner, the CountyDropdown renders without any issues. However, when the QuestionForm is turned into a class component with a loading spinner, the CountyDropdown does not render successfully. The CountyDropdown is identical in each branch.

Next Steps

  • Compare dev and fix/18chowdhary/fix-question-lagging for any other differences.
  • Perhaps consider turning QuestionForm in fix/18chowdhary/fix-question-lagging branch into a functional component with a loading spinner to determine if the issue may be turning QuesionForm into a class component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions