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

Function mutationDateSort

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

Source from the content-addressed store, hash-verified

132 : 3
133
134const mutationDateSort: MutationSortFn = (a, b) =>
135 a.state.submittedAt < b.state.submittedAt ? 1 : -1
136
137const mutationStatusSort: MutationSortFn = (a, b) => {
138 if (getMutationStatusRank(a) === getMutationStatusRank(b)) {

Callers 2

mutationStatusSortFunction · 0.85
utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected