mirror of
https://github.com/docmost/docmost.git
synced 2026-08-24 03:22:14 +10:00
fix(integration): refresh connections list after disconnect
This commit is contained in:
@@ -104,6 +104,8 @@ export function useDisconnectIntegration() {
|
|||||||
qc.invalidateQueries({
|
qc.invalidateQueries({
|
||||||
queryKey: ["integration-connection", variables.integrationId],
|
queryKey: ["integration-connection", variables.integrationId],
|
||||||
});
|
});
|
||||||
|
qc.invalidateQueries({ queryKey: ["my-connections"] });
|
||||||
|
// removeQueries, not invalidate: refetchOnMount false would revive stale entries
|
||||||
qc.removeQueries({ queryKey: ["unfurl"] });
|
qc.removeQueries({ queryKey: ["unfurl"] });
|
||||||
},
|
},
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user