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

Function dateSort

packages/vue-query/src/devtools/utils.ts:80–81  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

78const queryHashSort: SortFn = (a, b) => a.queryHash.localeCompare(b.queryHash)
79
80const dateSort: SortFn = (a, b) =>
81 a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1
82
83const statusAndDateSort: SortFn = (a, b) => {
84 if (getQueryState(a) === getQueryState(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…