-
Notifications
You must be signed in to change notification settings - Fork 572
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
feat: Add callback context and redirect history 2 #769
Conversation
@ShogunPanda PTAL |
165d7c3
to
615e8c6
Compare
lib/handler/redirect.js
Outdated
this.abort = abort | ||
this.handler.onConnect(abort) | ||
this.handler.onConnect(abort, { ...context, history: this.history }) |
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.
I'm thinking maybe we should put history
as a symbol we make public as to avoid collisions in the future?
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.
We could, but I think the external API might look a little complicated.
LGTM! |
Codecov Report
@@ Coverage Diff @@
## main #769 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 1906 1918 +12
=========================================
+ Hits 1906 1918 +12
Continue to review full report at Codecov.
|
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
* feat: Add callback context and redirect history. * feat: Updated TypeScript types. * fix: Make sure context exist before modifying it. * fixup * fixup * fixup * perf: reuse redirect handler * fixup * fixup * fixuP * fixup * fixup * Apply suggestions from code review * fixup Co-authored-by: Paolo Insogna <paolo@cowtech.it>
No description provided.