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

Function onError

packages/query-core/src/__tests__/mutationCache.test.tsx:103–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 const key = createKey()
102 const states: Array<number> = []
103 const onError = () =>
104 sleep(10).then(() => {
105 states.push(1)
106 states.push(2)
107 })
108 const onSettled = () =>
109 sleep(10).then(() => {
110 states.push(5)

Callers 2

withPersistQueryClientFunction · 0.50
asyncThrottleFunction · 0.50

Calls 1

sleepFunction · 0.90

Tested by

no test coverage detected