Skip to content

Commit 08ce8e8

Browse files
scttcperclaude
andauthored
fix(issues): Prevent double fetch of group search view endpoint (#112324)
`IssueViewWrapper` conditionally renders children behind a loading gate, so child observers mount after the parent's fetch completes. With `staleTime: 0` the new observers immediately trigger a second request to `/group-search-views/{id}/`. Bumping to 30s prevents the redundant request while still refreshing on re-navigation. Mutations already update the cache directly so staleness doesn't matter for user-initiated changes. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9e31a7c commit 08ce8e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎static/app/views/issueList/queries/useFetchGroupSearchView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const useFetchGroupSearchView = (
2222
options: Partial<UseApiQueryOptions<GroupSearchView>> = {}
2323
) => {
2424
return useApiQuery<GroupSearchView>(makeFetchGroupSearchViewKey(parameters), {
25-
staleTime: 0,
25+
staleTime: 30_000,
2626
retry: false,
2727
...options,
2828
});

0 commit comments

Comments
 (0)