-
Notifications
You must be signed in to change notification settings - Fork 662
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
Allow handlerInstallPath
to work without stateStore
#1507
Conversation
a06a2bf
to
bcb3086
Compare
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.
Could you check my comments?
} else if (typeof existingCookies === 'string') { | ||
allCookies.push(existingCookies); | ||
let state; | ||
if (this.stateStore) { |
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.
Can you use this.stateVerification
flag instead and place L340 - L342 that you've deleted inside the if statement?
if (this.stateStore) { | |
if (this.stateVerification) { |
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.
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.
How about doing like this? I would like the logic to check if this.stateVerification is true first.
if (this.stateVerification) {
if (this.stateStore) {
// the normal pattern
} else {
// have the codes L340 - L342
}
}
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.
Sounds good 👍 Done.
bcb3086
to
905f3e2
Compare
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.
Can you resolve the TS compilation error?
905f3e2
to
72b3213
Compare
Sorted my local env and now I'm not coding blind :) Fixed, tests passing locally. Hopefully all good to go. |
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.
Looks great to me! Thanks for contributing to this SDK!
Summary
#1506
This is a bit of a guess. It worked when I edited the compiled code in my
node_modules
🤮 but I wouldn't be surprised if there was a better way :)I can't run the tests locally so I'm fully expecting them to fail. This is more of a "here's what I found" PR.
Requirements (place an
x
in each[ ]
)