Skip to content

Commit c390df9

Browse files
author
lukaw3d
committed
Start refetching machine details
Without this if user visits machine page soon after clicking "Top up new machine based on last one" they have to manually refresh the page to get past "Waiting for scheduler" blocking machine logs.
1 parent 5451715 commit c390df9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pages/Dashboard/MachinesDetails/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ export const MachinesDetails: FC = () => {
2929
'sapphire',
3030
provider!,
3131
id!,
32+
{
33+
// @ts-expect-error Incorrect type demands queryKey
34+
query: {
35+
refetchInterval: 10_000, // Most useful when waiting for net.oasis.scheduler.rak
36+
},
37+
},
3238
)
3339
const { data, isLoading, isFetched } = roflMachinesQuery
3440
const machine = data?.data

0 commit comments

Comments
 (0)