MCPcopy Index your code
hub / github.com/TanStack/table / safeUpdater

Function safeUpdater

packages/table-core/src/features/RowPagination.ts:240–244  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

238 }
239 table.setPagination = (updater) => {
240 const safeUpdater: Updater<PaginationState> = (old) => {
241 let newState = functionalUpdate(updater, old)
242
243 return newState
244 }
245
246 return table.options.onPaginationChange?.(safeUpdater)
247 }

Callers

nothing calls this directly

Calls 1

functionalUpdateFunction · 0.90

Tested by

no test coverage detected