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

Function keepPreviousData

packages/query-core/src/utils.ts:394–398  ·  view source on GitHub ↗
(
  previousData: T | undefined,
)

Source from the content-addressed store, hash-verified

392}
393
394export function keepPreviousData<T>(
395 previousData: T | undefined,
396): T | undefined {
397 return previousData
398}
399
400export function addToEnd<T>(items: Array<T>, item: T, max = 0): Array<T> {
401 const newItems = [...items, item]

Callers 1

utils.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…