MCPcopy
hub / github.com/TanStack/table / functionalUpdate

Function functionalUpdate

packages/table-core/src/utils.ts:81–85  ·  view source on GitHub ↗
(updater: Updater<T>, input: T)

Source from the content-addressed store, hash-verified

79///
80
81export function functionalUpdate<T>(updater: Updater<T>, input: T): T {
82 return typeof updater === 'function'
83 ? (updater as (input: T) => T)(input)
84 : updater
85}
86
87export function noop() {
88 //

Callers 7

createTableFunction · 0.90
ColumnFiltering.tsFile · 0.90
updateFnFunction · 0.90
safeUpdaterFunction · 0.90
RowPagination.tsFile · 0.90
makeStateUpdaterFunction · 0.85
safeUpdaterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…