-
Notifications
You must be signed in to change notification settings - Fork 546
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
fix: pass down context in onConnect #3858
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening a PR! Can you please add a unit test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
...args is imho not that nice. i think it does not cover in the types or so, that it can have two arguments. only abort. |
I noticed that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This relates to...
The retry and cache handlers do not pass down the context of the
onConnect
method. This means that using the redirect handler with one of them will not pass the context to the main handler:Rationale
Changes
...args
to pass all the args (like in the decorator handler)onConnect
is now called on the first connection instead that in the constructor, allowing to pass the contextFeatures
Bug Fixes
Breaking Changes and Deprecations
Status