Subscribes to capability-unavailable facts.
The callback fires immediately for every fact already recorded, then for each new one. Subscribing after boot therefore loses nothing — see the module header for why that replay is contract rather than convenience.
Called once per distinct unavailable capability.
An unsubscribe function. Calling it twice is harmless.
const off = GeoLeaf?.Capabilities?.onUnavailable(({ id, motif }) => { console.warn(`no ${id}: ${motif}`);});off?.(); Copy
const off = GeoLeaf?.Capabilities?.onUnavailable(({ id, motif }) => { console.warn(`no ${id}: ${motif}`);});off?.();
Subscribes to capability-unavailable facts.
The callback fires immediately for every fact already recorded, then for each new one. Subscribing after boot therefore loses nothing — see the module header for why that replay is contract rather than convenience.