mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
implement react-query for edge-cases (#1711)
When initially implementing react-query, we focussed on core features. This pull request now replaces the remaining apiClient usages in ui-components and ui-webapp with react-query hooks.
This commit is contained in:
committed by
GitHub
parent
2cd46ce8a0
commit
e1239aff92
@@ -88,7 +88,7 @@ export const useDeleteBranch = (repository: Repository) => {
|
||||
},
|
||||
{
|
||||
onSuccess: async (_, branch) => {
|
||||
await queryClient.invalidateQueries(branchQueryKey(repository, branch));
|
||||
queryClient.removeQueries(branchQueryKey(repository, branch));
|
||||
await queryClient.invalidateQueries(repoQueryKey(repository, "branches"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user