Stirling-PDF/frontend/src/core/hooks/useBackendHealth.ts
James Brunton 044bf3c2aa
Improve loading speed of desktop app (#4865)
# Description of Changes
Improve loading speed of desktop app by loading a default config until
the backend has spawned.
2025-11-11 11:54:43 +00:00

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,
};
}