Skip to content

Commit

Permalink
removed disableWait for simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
seeden committed Jan 19, 2022
1 parent bbc35f6 commit 241897f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/api-react/src/hooks/useService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export type ServiceState = 'starting' | 'running' | 'stopping' | 'stopped';

type Options = {
keepState?: ServiceState,
disableWait?: boolean,
disabled?: boolean,
};

Expand All @@ -22,7 +21,6 @@ export default function useService(service: ServiceName, options: Options): {
} {
const {
keepState,
disableWait = false,
disabled = false,
} = options;

Expand All @@ -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';
Expand All @@ -65,7 +65,6 @@ export default function useService(service: ServiceName, options: Options): {
setIsStarting(true);
await startService({
service,
disableWait,
}).unwrap();

refetch();
Expand Down
1 change: 0 additions & 1 deletion packages/api-react/src/hooks/useServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ function getServiceOptions(service: ServiceName, services: ServiceName[], option
return {
keepState,
disabled,
disableWait: service === ServiceName.SIMULATOR,
};
}

Expand Down

0 comments on commit 241897f

Please sign in to comment.