# Description of Changes Improve loading speed of desktop app by loading a default config until the backend has spawned.
13 lines
276 B
TypeScript
13 lines
276 B
TypeScript
import type { BackendHealthState } from '@app/types/backendHealth';
|
|
|
|
export function useBackendHealth(): BackendHealthState {
|
|
return {
|
|
status: 'healthy',
|
|
message: null,
|
|
isChecking: false,
|
|
lastChecked: Date.now(),
|
|
error: null,
|
|
isHealthy: true,
|
|
};
|
|
}
|