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

Function dateSort

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

Source from the content-addressed store, hash-verified

99const queryHashSort: SortFn = (a, b) => a.queryHash.localeCompare(b.queryHash)
100
101const dateSort: SortFn = (a, b) =>
102 a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1
103
104const statusAndDateSort: SortFn = (a, b) => {
105 if (getQueryState(a) === getQueryState(b)) {

Callers 1

statusAndDateSortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected