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

Function keepPreviousData

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

Source from the content-addressed store, hash-verified

580 * ```
581 */
582export function keepPreviousData<T>(
583 previousData: T | undefined,
584): T | undefined {
585 return previousData
586}
587
588/**
589 * Returns a new array with `item` added at the end. If that makes the array longer than `max`,

Callers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected