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

Function statusAndDateSort

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

Source from the content-addressed store, hash-verified

81 a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1
82
83const statusAndDateSort: SortFn = (a, b) => {
84 if (getQueryState(a) === getQueryState(b)) {
85 return dateSort(a, b)
86 }
87
88 return getQueryState(a) > getQueryState(b) ? 1 : -1
89}
90
91export const sortFns: Record<string, SortFn> = {
92 'Status > Last Updated': statusAndDateSort,

Callers

nothing calls this directly

Calls 2

getQueryStateFunction · 0.85
dateSortFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…