mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-15 19:10:47 +02:00
# Description of Changes Fixes two distinct but related issues in the backend of the desktop app: - Correctly shows tools as unavaialable when the backend doesn't have the dependencies or has disabled them etc. (same as web version - this primarily didn't work on desktop because the app spawns before the backend is running) - Fixes infinite re-rendering issues caused by the app polling whether the backend is healthy or not
11 lines
224 B
TypeScript
11 lines
224 B
TypeScript
import type { BackendHealthState } from '@app/types/backendHealth';
|
|
|
|
export function useBackendHealth(): BackendHealthState {
|
|
return {
|
|
status: 'healthy',
|
|
message: null,
|
|
error: null,
|
|
isHealthy: true,
|
|
};
|
|
}
|