From 241897f7afd4b4de68ca3dd596a991630312aa70 Mon Sep 17 00:00:00 2001 From: Zlatko Fedor Date: Wed, 19 Jan 2022 21:13:37 +0100 Subject: [PATCH] removed disableWait for simulator --- packages/api-react/src/hooks/useService.ts | 5 ++--- packages/api-react/src/hooks/useServices.ts | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/api-react/src/hooks/useService.ts b/packages/api-react/src/hooks/useService.ts index df0257b634..e2280bf82b 100644 --- a/packages/api-react/src/hooks/useService.ts +++ b/packages/api-react/src/hooks/useService.ts @@ -7,7 +7,6 @@ export type ServiceState = 'starting' | 'running' | 'stopping' | 'stopped'; type Options = { keepState?: ServiceState, - disableWait?: boolean, disabled?: boolean, }; @@ -22,7 +21,6 @@ export default function useService(service: ServiceName, options: Options): { } { const { keepState, - disableWait = false, disabled = false, } = options; @@ -45,6 +43,8 @@ export default function useService(service: ServiceName, options: Options): { }, }); + console.log('useService', service, isRunning, isLoading, error); + const isProcessing = isStarting || isStopping; let state: ServiceState = 'stopped'; @@ -65,7 +65,6 @@ export default function useService(service: ServiceName, options: Options): { setIsStarting(true); await startService({ service, - disableWait, }).unwrap(); refetch(); diff --git a/packages/api-react/src/hooks/useServices.ts b/packages/api-react/src/hooks/useServices.ts index 0834315b25..158d48b9da 100644 --- a/packages/api-react/src/hooks/useServices.ts +++ b/packages/api-react/src/hooks/useServices.ts @@ -29,7 +29,6 @@ function getServiceOptions(service: ServiceName, services: ServiceName[], option return { keepState, disabled, - disableWait: service === ServiceName.SIMULATOR, }; }