8000 fix(core): Ensure setup and teardown can be overriden and maintain hook functionality by daffl · Pull Request #2779 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

fix(core): Ensure setup and teardown can be overriden and maintain hook functionality#2779

Merged
daffl merged 1 commit intodovefrom
setup-teardown-override
Oct 6, 2022
Merged

fix(core): Ensure setup and teardown can be overriden and maintain hook functionality#2779
daffl merged 1 commit intodovefrom
setup-teardown-override

Conversation

@daffl
Copy link
Member
@daffl daffl commented Oct 6, 2022

This was causing problems before and was fixed for Socket.io specifically in #2722 but turned out to also be an issue for teardown when using Koa or Express. The generic fix was to reinitialise the app hooks every time the setup or teardown method is set and the function is not already a hook enabled function.

Closes #2774

@daffl daffl merged commit ab580cb into dove Oct 6, 2022
@daffl daffl deleted the setup-teardown-override branch October 6, 2022 17:31
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.

app property missing on teardown hook

1 participant

0