MCPcopy
hub / github.com/Innei/Shiro / onError

Function onError

src/components/modules/comment/CommentBox/hooks.tsx:210–212  ·  view source on GitHub ↗
(error: RequestError)

Source from the content-addressed store, hash-verified

208 },
209 mutationKey: [commentRefId, 'comment'],
210 onError(error: RequestError) {
211 toast.error(getErrorMessageFromRequestError(error))
212 },
213 onSuccess(data) {
214 afterSubmit?.()
215

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80

Tested by

no test coverage detected