Trying to get access to bindings in a function that's called by hono
I wanted to know if the below was bad practice
2 Replies
I need access to kv in a function called by inngest. I'm not sure if using globalThis to access the bindings is a good idea due to cloudflare's reuse of isolates. Is there a better way to do this?
Personally I tend to pass around the
context
object into my functions
You can type that as the same generic you pass into Hono
Context<{Bindings: …}>