Skip to content

How to handle multiple errors in (react query) using (hono rpc)? #2753

Answered by kosei28
igmtink asked this question in Q&A
Discussion options

You must be logged in to vote

I think the type error will be resolved by changing ResponseType as follows.

type ResponseType = InferResponseType<typeof client.api.signup.$post, 200>['data']

Replies: 1 comment 18 replies

Comment options

You must be logged in to vote
18 replies
@igmtdev
Comment options

@kosei28
Comment options

@igmtdev
Comment options

@kosei28
Comment options

Answer selected by igmtink
@igmtdev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants