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

Jmpi optimise check patient count on dashboard #212

Merged
merged 16 commits into from
Apr 4, 2024

Conversation

NyashaMuusha
Copy link
Collaborator

@NyashaMuusha NyashaMuusha commented Apr 2, 2024

1. Description of changes

Added cacheTime and staleTime of 5 minutes to useQuery hook

refetchOnWindowFocus: false,
// TODO: Consider updating later
refetchInterval: 3000,
refetchInterval: 5 * 60 * 1000,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NyashaMuusha can you make this configurable?

Copy link
Collaborator

@MatthewErispe MatthewErispe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MatthewErispe MatthewErispe merged commit 1017e91 into dev Apr 4, 2024
5 checks passed
@MatthewErispe MatthewErispe deleted the Jmpi-optimise-check-patient-count-on-dashboard branch April 4, 2024 11:28
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.

2 participants