RunViewWithCacheCheckResult<T>: {
    errorMessage?: string;
    maxUpdatedAt?: string;
    results?: T[];
    rowCount?: number;
    status: "current" | "stale" | "error";
    viewIndex: number;
}

Result for a single RunView with cache check. The server returns either 'current' (cache is valid) or 'stale' (with fresh data).

Type Parameters

  • T = unknown

Type declaration

  • Optional errorMessage?: string

    Error message if status is 'error'

  • Optional maxUpdatedAt?: string

    The maximum __mj_UpdatedAt from the results - only when status is 'stale'

  • Optional results?: T[]

    The fresh results - only populated when status is 'stale'

  • Optional rowCount?: number

    The row count of the results - only when status is 'stale'

  • status: "current" | "stale" | "error"

    'current' means the client's cache is still valid - no data returned 'stale' means the cache is outdated - fresh data is included in results 'error' means there was an error checking/executing the view

  • viewIndex: number

    The index of this view in the batch request (for correlation)