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'
1313import { Button } from '~/ui/lib/Button'
1414import { SpinnerLoader } from '~/ui/lib/Spinner'
1515
16- export function RefreshButton ( { onClick } : { onClick : ( ) => Promise < void > } ) {
16+ export function RefreshButton ( { onClick } : { onClick : ( ) => Promise < unknown > } ) {
1717 const [ refreshing , setRefreshing ] = useState ( false )
1818
1919 async function refresh ( ) {
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ async function refreshData() {
7272 apiQueryClient . invalidateQueries ( 'instanceNetworkInterfaceList' ) ,
7373 apiQueryClient . invalidateQueries ( 'instanceDiskList' ) , // storage tab
7474 apiQueryClient . invalidateQueries ( 'diskMetricsList' ) , // metrics tab
75+ apiQueryClient . invalidateQueries ( 'antiAffinityGroupMemberList' ) ,
7576 ] )
7677}
7778
Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ export async function clientLoader({ params }: LoaderFunctionArgs) {
6969 return null
7070}
7171
72- const refetchInstances = ( ) => apiQueryClient . invalidateQueries ( 'instanceList' )
72+ const refetchInstances = ( ) =>
73+ Promise . all ( [
74+ apiQueryClient . invalidateQueries ( 'instanceList' ) ,
75+ apiQueryClient . invalidateQueries ( 'antiAffinityGroupMemberList' ) ,
76+ ] )
7377
7478const sec = 1000 // ms, obviously
7579const POLL_FAST_TIMEOUT = 30 * sec
You can’t perform that action at this time.
0 commit comments