-
Notifications
You must be signed in to change notification settings - Fork 141
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
Send error events for redirect errors #2973
Conversation
🦋 Changeset detectedLatest commit: 66856c9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
Size Change: +603 B (+0.08%) Total Size: 768 kB
ℹ️ View Unchanged
|
0266d5c
to
78080a9
Compare
78080a9
to
6b7c6ae
Compare
@@ -49,14 +51,17 @@ class RedirectShopper extends Component<RedirectShopperProps> { | |||
}) | |||
); | |||
|
|||
dispatchEvent.then(doRedirect).catch(() => {}); | |||
dispatchEvent.then(doRedirect).catch(() => { | |||
this.props.onRedirectError(); |
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 recall me in which scenarios does the Redirect may fail?
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.
To be honest, I cannot think of that many situations except for beforeRedirect
callback gets rejected. doRedirect
looks reliable to me, except for the onActionHandled
callback from the merchant's side throws an error.
Quality Gate passedIssues Measures |
Summary
doRedirect
throws an errorTested scenarios
doRedirect
Fixed issue: COWEB-1463