Are middleware singleton like in ElysiaJS ?
Hello,
Just wondering if middleware were singleton like in Elysia ?
I have a middleware which is my dependency container, and I need to apply a
Should I add a check in my code to not add my variables to context if it already been added ? Or does Hono do this for me with a specific option ?
Thx for your answers
Just wondering if middleware were singleton like in Elysia ?
I have a middleware which is my dependency container, and I need to apply a
.use(container) on each route which needs to access the container.Should I add a check in my code to not add my variables to context if it already been added ? Or does Hono do this for me with a specific option ?
Thx for your answers