mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-17 13:52:14 +01:00
# 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,
|
|
};
|
|
}
|