Add Capacitor support (#483)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -39,8 +39,13 @@ export function AppUpgrades({ appId }: { appId: number | null }) {
|
||||
upgradeId,
|
||||
});
|
||||
},
|
||||
onSuccess: () => {
|
||||
onSuccess: (_, upgradeId) => {
|
||||
queryClient.invalidateQueries({ queryKey: ["app-upgrades", appId] });
|
||||
if (upgradeId === "capacitor") {
|
||||
// Capacitor upgrade is done, so we need to invalidate the Capacitor
|
||||
// query to show the new status.
|
||||
queryClient.invalidateQueries({ queryKey: ["is-capacitor", appId] });
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user