MCPcopy Index your code
hub / github.com/TanStack/query / replaceAt

Function replaceAt

packages/query-core/src/queriesObserver.ts:17–21  ·  view source on GitHub ↗
(array: Array<T>, index: number, value: T)

Source from the content-addressed store, hash-verified

15}
16
17function replaceAt<T>(array: Array<T>, index: number, value: T): Array<T> {
18 const copy = array.slice(0)
19 copy[index] = value
20 return copy
21}
22
23type QueriesObserverListener = (result: Array<QueryObserverResult>) => void
24

Callers 1

#onUpdateMethod · 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…