Closed alexandruluca closed 7 years ago
Unfortunately not, hooks-fixed and kareem are both meant to work with callbacks, not promises. If you pass a function that returns a promise through hooks, it won't return a promise anymore, need to use callbacks.
Hi,
Since I can't open an issue in hooks-fixed (repo forked by you), I chose yo put it here, hope it doesn't bother you.
I have this small example
Basically, when calling a function which has a hook from a function that also has a hook, the result of the function which will get called in the first hook is undefined (in this case, the function is o.update, which is called from o.install)
This is the error I am getting, it reffers to