@honua/sdk-js
    Preparing search index...

    Type Alias QueryTileLifecycleEvent<T>

    QueryTileLifecycleEvent:
        | {
            cacheKey: string;
            descriptorId: string;
            sourceId: string;
            tileKey: QueryTileKey;
            type: "tile-requested";
            url: string;
        }
        | {
            cacheKey: string;
            descriptorId: string;
            sourceId: string;
            tileKey: QueryTileKey;
            type: "tile-cache-hit";
            value: T;
        }
        | {
            cacheKey: string;
            descriptorId: string;
            sourceId: string;
            tileKey: QueryTileKey;
            type: "tile-loaded";
            value: T;
        }
        | {
            cacheKey: string;
            descriptorId: string;
            reason?: unknown;
            sourceId: string;
            tileKey: QueryTileKey;
            type: "tile-aborted";
        }
        | {
            cacheKey: string;
            descriptorId: string;
            error: unknown;
            sourceId: string;
            tileKey: QueryTileKey;
            type: "tile-error";
        }
        | {
            cacheKey: string;
            descriptorId: string;
            reason: "invalidate"
            | "lru"
            | "clear";
            sourceId: string;
            tileKey: QueryTileKey;
            type: "tile-evicted";
        }

    Type Parameters

    • T = unknown