Skip to content

Commit 7ac69e6

Browse files
scttcperclaude
authored andcommitted
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 11a372e commit 7ac69e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)