File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { Refresh16Icon } from '@oxide/design-system/icons/react'
13
13
import { Button } from '~/ui/lib/Button'
14
14
import { SpinnerLoader } from '~/ui/lib/Spinner'
15
15
16
- export function RefreshButton ( { onClick } : { onClick : ( ) => Promise < void > } ) {
16
+ export function RefreshButton ( { onClick } : { onClick : ( ) => Promise < unknown > } ) {
17
17
const [ refreshing , setRefreshing ] = useState ( false )
18
18
19
19
async function refresh ( ) {
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ async function refreshData() {
72
72
apiQueryClient . invalidateQueries ( 'instanceNetworkInterfaceList' ) ,
73
73
apiQueryClient . invalidateQueries ( 'instanceDiskList' ) , // storage tab
74
74
apiQueryClient . invalidateQueries ( 'diskMetricsList' ) , // metrics tab
75
+ apiQueryClient . invalidateQueries ( 'antiAffinityGroupMemberList' ) ,
75
76
] )
76
77
}
77
78
Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ export async function clientLoader({ params }: LoaderFunctionArgs) {
69
69
return null
70
70
}
71
71
72
- const refetchInstances = ( ) => apiQueryClient . invalidateQueries ( 'instanceList' )
72
+ const refetchInstances = ( ) =>
73
+ Promise . all ( [
74
+ apiQueryClient . invalidateQueries ( 'instanceList' ) ,
75
+ apiQueryClient . invalidateQueries ( 'antiAffinityGroupMemberList' ) ,
76
+ ] )
73
77
74
78
const sec = 1000 // ms, obviously
75
79
const POLL_FAST_TIMEOUT = 30 * sec
You can’t perform that action at this time.
0 commit comments