Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Type Alias CacheTelemetryState

    CacheTelemetryState:
        | { kind: "enabled" }
        | { kind: "disabled-no-cache" }
        | { kind: "disabled-config" }
        | { kind: "not-wired" }

    Explicit cache telemetry state — distinguishes the three "not-enabled" variants from each other so the UI can render an accurate disabled-reason. A ?noCache URL run produces no provider, so without this state the cache tab would default to enabled and mislead the user.

    • enabled : caching is on AND providers are wired.
    • disabled-no-cache : caching turned off via ?noCache.
    • disabled-config : turned off via app config.
    • not-wired : caching is on but providers haven't been wired yet (e.g. mid-scene-transition).

    Lives in types/ so the data layer (cache-setup.ts) and the UI layer (ui/data-loading-monitor/metrics/cache.ts) can both reference it without crossing the layer boundary.