kareem icon indicating copy to clipboard operation
kareem copied to clipboard

Next-generation take on pre/post function hooks

Results 5 kareem issues
Sort by recently updated
recently updated
newest added

```javascript hooks.pre('cook', function () { new Promise(resolve => { this = undefined // obviously doesn't work resolve() })}) function() { return new Promise(resolve => { resolve() }); }); var obj...

Hi @vkarpov15 First a little background before I come to my question. I'm a core team member of [keystone](/keystonejs/keystone) and recently we needed some hooking functionality. So I started scouring...

not a big improvement, but really visible in a step by step debugging

Work in progress to make `execPre()` and `execPost()` use async functions where possible to better support https://github.com/Automattic/mongoose/issues/15317. Tested in kareem repo as well as running Mongoose with these changes. Couple...