lessquo
Explore posts from serversHow to use custom fetch method for Hono client?
I have a noob question. I used to use the
axios
library and want a similar experience with the Hono client, such as shorter syntax, automatic JSON transformation and interceptors. Some suggest using ky
instead of axios
, but I don't know how to integrate it. The documentation (https://hono.dev/docs/guides/rpc#custom-fetch-method) is unclear to me. Could I get any guidance or example code?6 replies
ContextVariableMap not recognized during build from other package in monorepo
I created
src/hodo.d.ts
file in my Hono project:
Then, the type was inferred out of the box:
And, I configured the RPC feature in my React project:
It worked like a charm. but then I tried build command and encountered an error:
Does ContextVariableMap
type declaration not work with RPC feature?35 replies