We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This part is not documented on @feathersjs/hooks: https://github.com/koajs/koa/blob/master/docs/guide.md#combining-multiple-middleware-with-koa-compose
const { hooks, compose } = require('@feathersjs/hooks'); hooks(Hello, { sayHi: [ compose([ logRuntime, validateName, compose([ /* ... */ ]) ]) ] });
Try it: https://runkit.com/embed/l7srsn9s0s2q
The text was updated successfully, but these errors were encountered:
It can also be useful to call a chain of hooks inside a hook:
hooks(Hello, { sayHi: [ async (ctx, next) => { // ... stuff await compose([ logRuntime, validateName, compose([ /* ... */ ]) ])(ctx); // ... other stuff await next(); } ] });
Sorry, something went wrong.
No branches or pull requests
This part is not documented on @feathersjs/hooks: https://github.com/koajs/koa/blob/master/docs/guide.md#combining-multiple-middleware-with-koa-compose
Try it: https://runkit.com/embed/l7srsn9s0s2q
The text was updated successfully, but these errors were encountered: