GeoLeaf Core API - v3.19.0
    Preparing search index...
    • 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.

      Parameters

      Returns () => void

      An unsubscribe function. Calling it twice is harmless.

      const off = GeoLeaf?.Capabilities?.onUnavailable(({ id, motif }) => {
      console.warn(`no ${id}: ${motif}`);
      });
      off?.();