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

Update onClose Hook docs #1995

Closed
wants to merge 1 commit into from
Closed

Conversation

thedeveloperr
Copy link
Contributor

According to https://medium.com/@fastifyjs/8275d613fba4 the new bumped up version of avvio (v 6.0.0) removes the instance from the onClose hook as the first parameter.

According to https://medium.com/@fastifyjs/8275d613fba4 the new bumped up version of avvio (v 6.0.0) removes the instance from the onClose hook as the first parameter.
@thedeveloperr
Copy link
Contributor Author

Sorry I got confused in medium article.

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

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

This is not entirely correct, if you take a look at fastify/avvio#76, the supported function signatures are:

fastify.addHook('onClose', () => {})
fastify.addHook('onClose', (done) => {})
fastify.addHook('onClose', (instance, done) => {})

@thedeveloperr
Copy link
Contributor Author

thedeveloperr commented Dec 20, 2019 via email

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2022
@Eomm Eomm added the wontfix This will not be worked on, the behavior is intended label Apr 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on, the behavior is intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants