MCPcopy Create free account
hub / github.com/TanStack/query / keepPreviousData

Function keepPreviousData

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

Source from the content-addressed store, hash-verified

584 * ```
585 */
586export function keepPreviousData<T>(
587 previousData: T | undefined,
588): T | undefined {
589 return previousData
590}
591
592/**
593 * Adds an item to one end of a new array. If the result exceeds `max`, removes

Callers 2

utils.test-d.tsxFile · 0.90
utils.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected