mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
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]>