fix(source-control): invalidate branches cache after fetch and pull

This commit is contained in:
Chris Scott committed 2026-07-24 09:17:59 -04:00
1 parent ff250cb1d2
commit 8d5102dc90
1 file changed
+2 -2
+2 -2
View File
@@ -22,7 +22,7 @@ export function useGit(repoId: number | undefined, onError?: (error: unknown) =>
},
onSuccess: (data) => {
if (repoId) setRepoGitStatusCaches(queryClient, repoId, data)
invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false, invalidateRepoMeta: false })
invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false })
showToast.success('Fetch completed')
},
onError: handleError,
@@ -35,7 +35,7 @@ export function useGit(repoId: number | undefined, onError?: (error: unknown) =>
},
onSuccess: (data) => {
if (repoId) setRepoGitStatusCaches(queryClient, repoId, data)
invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false, invalidateRepoMeta: false })
invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false })
showToast.success('Pull completed')
},
onError: handleError,