MCPcopy Index your code
hub / github.com/TanStack/db / wrappedCallback

Function wrappedCallback

packages/db/src/proxy.ts:117–125  ·  view source on GitHub ↗
(
      this: unknown,
      element: unknown,
      index: number,
      array: unknown,
    )

Source from the content-addressed store, hash-verified

115
116 // Wrap the callback to pass proxied elements
117 const wrappedCallback = function (
118 this: unknown,
119 element: unknown,
120 index: number,
121 array: unknown,
122 ) {
123 const proxiedElement = getProxiedElement(element, index)
124 return callback.call(this, proxiedElement, index, array)
125 }
126
127 // For reduce/reduceRight, the callback signature is different
128 if (methodName === `reduce` || methodName === `reduceRight`) {

Callers

nothing calls this directly

Calls 2

getProxiedElementFunction · 0.85
markChangedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…