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(dashboards): Prevent fetch thrashing in Project Details pages #81988

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

gggritso
Copy link
Member

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.

@gggritso gggritso requested a review from a team as a code owner December 11, 2024 20:57
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 11, 2024
@gggritso gggritso merged commit 9e37e68 into master Dec 11, 2024
44 checks passed
@gggritso gggritso deleted the fix/dashboards/fix-refetches-in-project-details branch December 11, 2024 21:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants