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

Function useInfiniteTableRows

apps/sim/hooks/queries/tables.ts:496–508  ·  view source on GitHub ↗
({
  workspaceId,
  tableId,
  pageSize,
  filter,
  sort,
  enabled = true,
}: InfiniteTableRowsParams)

Source from the content-addressed store, hash-verified

494
495/** Page 0 fetches a server-side `COUNT(*)`; subsequent pages skip it. */
496export function useInfiniteTableRows({
497 workspaceId,
498 tableId,
499 pageSize,
500 filter,
501 sort,
502 enabled = true,
503}: InfiniteTableRowsParams) {
504 return useInfiniteQuery({
505 ...tableRowsInfiniteOptions({ workspaceId, tableId, pageSize, filter, sort }),
506 enabled: Boolean(workspaceId && tableId) && enabled,
507 })
508}
509
510/**
511 * Create a new table in a workspace.

Callers 1

useTableFunction · 0.90

Calls 1

tableRowsInfiniteOptionsFunction · 0.85

Tested by

no test coverage detected