Surface a backend AppError through the standard notification pipeline.
One-call helper that replaces the boilerplate of constructing a
Notification, calling present(), and calling dispatch() at every
mutation/onError site. Use this in:
useMutation.onError handlers
try/catch blocks around await invoke(...) calls
useSuccess handlers that receive { ok: false, error } payloads
Silently no-ops for Cancelled (its policy is "silent").
Surface a backend
AppErrorthrough the standard notification pipeline.One-call helper that replaces the boilerplate of constructing a
Notification, callingpresent(), and callingdispatch()at every mutation/onError site. Use this in:useMutation.onErrorhandlerstry/catchblocks aroundawait invoke(...)callsuseSuccesshandlers that receive{ ok: false, error }payloadsSilently no-ops for
Cancelled(its policy is"silent").