mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
fix(source-control): invalidate branches cache after fetch and pull
This commit is contained in:
1 parent
ff250cb1d2
commit
8d5102dc90
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user