Compare commits

...

1 Commits

Author SHA1 Message Date
Brian McGee
13ea536d46 fix(ui): blocking refresh of machine state after machine install 2025-09-05 09:26:39 +01:00

View File

@@ -34,9 +34,17 @@ export const SidebarSectionInstall = (props: SidebarSectionInstallProps) => {
open={showInstall()} open={showInstall()}
machineName={useMachineName()} machineName={useMachineName()}
onClose={async () => { onClose={async () => {
// refresh some queries // trigger machine state refresh and wait for it
const machineState = useMachineStateQuery(
props.clanURI,
props.machineName,
);
await machineState.refetch();
// trigger more state to refresh but not wait for it
ctx.machinesQuery.refetch(); ctx.machinesQuery.refetch();
ctx.serviceInstancesQuery.refetch(); ctx.serviceInstancesQuery.refetch();
setShowModal(false); setShowModal(false);
}} }}
/> />