Skip to content
New issue

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

support hooks with payloads #185

Merged
merged 3 commits into from
May 14, 2023
Merged

support hooks with payloads #185

merged 3 commits into from
May 14, 2023

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented May 11, 2023

fix #179

Checklist

index.js Outdated Show resolved Hide resolved
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Uzlopak
Copy link
Contributor Author

Uzlopak commented May 14, 2023

@Eomm
PTAL

const kMiddieHasMiddlewares = Symbol('fastify-middie-has-middlewares')
const { FST_ERR_MIDDIE_INVALID_HOOK } = require('./lib/errors')

const supportedHooksWithPayload = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot the docs! 🤦🏼

@Uzlopak
Copy link
Contributor Author

Uzlopak commented May 14, 2023

@Eomm

added documentation

PTAL

@Eomm Eomm merged commit 87ef614 into master May 14, 2023
16 checks passed
@Eomm Eomm deleted the fix-179 branch May 14, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"next is not a function" using hook preParsing
3 participants