-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dashboards): Prevent fetch thrashing in Project Details pages (#8…
…1988) Under some conditions, project score cards keep re-fetching data. A data fetch finishes, the component re-renders, and this re-runs the `useApi` hooks since the second timestamp has changed. This is easy to side-step by setting a high `staleTime`. In this case, we do not want _any_ passive refetches, so an infinite stale time makes sure that's the case.
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters