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

fix: when loading a dashboard set the loaded flag after the fetch so state doesn't toggle back and forth [v37] #1976

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

jenniferarnesen
Copy link
Collaborator

Backport of #1975

loaded was set to true before firing the fetch dashboards request. When that request failed due to the cache being hacked and deleted, then catch set loaded back to false. The result was that loaded kept toggling between true and false.

In addition, after discussion with Kai, it is not necessary to listen to recordingState to determine if loading is necessary. Note that removal of that recordingState doesn't impact any behavior.

@jenniferarnesen jenniferarnesen changed the base branch from master to v37 September 14, 2021 14:29
@jenniferarnesen jenniferarnesen enabled auto-merge (squash) September 14, 2021 20:06
@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-1976--dhis2-dashboard.netlify.app

@jenniferarnesen jenniferarnesen merged commit 7b64a31 into v37 Sep 15, 2021
@jenniferarnesen jenniferarnesen deleted the fix/infinite-dashboards-requests-v37 branch September 15, 2021 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants