Files
zeekayandHanzo Dev a7a65d4095 fix(zap): mark the promise-returning functions async, and the two that never wait not
The lint config makes @typescript-eslint/promise-function-async and
require-await errors. Seven functions in the ZAP React hooks return a
promise without being async — the query and mutation functions and three
cache utilities — and two route handlers are async with nothing to await:
both only log and throw NOT_IMPLEMENTED.

The seven are async. A synchronous throw inside them would now reject
rather than throw, which TanStack Query already turns every queryFn and
mutationFn throw into, and the utilities return what they returned. The two
handlers drop async. The dispatcher is their only caller and awaits them
inside one try, which catches a thrown error and a rejected promise alike.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-19 05:06:51 -07:00
..