MCPcopy Index your code
hub / github.com/simstudioai/sim / isInfiniteRowsCache

Function isInfiniteRowsCache

apps/sim/hooks/queries/tables.ts:1871–1878  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1869type RowsCacheSnapshots = Array<[ReadonlyArray<unknown>, RowsCacheEntry]>
1870
1871function isInfiniteRowsCache(value: unknown): value is InfiniteRowsCache {
1872 return (
1873 !!value &&
1874 typeof value === 'object' &&
1875 Array.isArray((value as { pages?: unknown }).pages) &&
1876 Array.isArray((value as { pageParams?: unknown }).pageParams)
1877 )
1878}
1879
1880/**
1881 * Walks every cached query under `rowsRoot(tableId)` and applies `transform`

Callers 1

snapshotAndMutateRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected