MCPcopy
hub / github.com/TanStack/query / dateSort

Function dateSort

packages/query-devtools/src/utils.tsx:104–105  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

102const queryHashSort: SortFn = (a, b) => a.queryHash.localeCompare(b.queryHash)
103
104const dateSort: SortFn = (a, b) =>
105 a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1
106
107const statusAndDateSort: SortFn = (a, b) => {
108 if (getStatusRank(a) === getStatusRank(b)) {

Callers 1

statusAndDateSortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…