Re:Show HN: Backhooks, hooks for Node.js and the back-end
by kelsonpw35 on Thursday January 19, 2023 @12:04AM
(#34436900)
is this... Dependency Injection and function calls?
[ Parent
| on HN ]
Re:Show HN: Backhooks, hooks for Node.js and the back-end
by codehammer on Thursday January 19, 2023 @01:18AM
(#34437292)
It is actually! Dependency injection is not that easy with NodeJS in some execution contexts like http requests. Some frameworks make it easy like NestJS, but it's a relatively heavy implementation of DI. This method is lightweight and potentially easier to use, with an API close to react hooks or vue composables. Thanks for commenting!