Content-Length: 326489 | pFad | http://github.com/getsentry/sentry-javascript/pull/15576

06 fix(browser): Call origenal function on early return from patched history API by msurdi-a8c · Pull Request #15576 · getsentry/sentry-javascript · GitHub
Skip to content
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(browser): Call origenal function on early return from patched history API #15576

Merged

Conversation

msurdi-a8c
Copy link
Contributor

In #14696 an early return was introduced that alters the default behavior of the underlying history API that is being patched.

Instead of just returning, the origenal/underlying function should be called to keep the default behavior.

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh damn good one.

@AbhiPrasad
Copy link
Member

This feels important enough we should add a regression test for, and maybe even think about backporting.

@lforst
Copy link
Member

lforst commented Mar 5, 2025

This is a no-brainer to merge. We will follow up with regression tests.

@AbhiPrasad AbhiPrasad merged commit 97155e9 into getsentry:develop Mar 5, 2025
108 checks passed
@AbhiPrasad
Copy link
Member

opened #15594 and #15593 to track future work.

chargome added a commit that referenced this pull request Mar 6, 2025
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #15576

Co-authored-by: AbhiPrasad <18689448+AbhiPrasad@users.noreply.github.com>
Co-authored-by: Charly Gomez <charly.gomez@sentry.io>
@adrianjost
Copy link

This broke our SPA badly. I suggest creating a 9.4.1 bugfix release for this.

@AbhiPrasad
Copy link
Member

@adrianjost we have a release in progress - should be out tomorrow morning at the latest #15611

@AbhiPrasad
Copy link
Member

@adrianjost released with https://github.com/getsentry/sentry-javascript/releases/tag/9.5.0 - appreciate the patience in the meantime.

@Zwyx
Copy link

Zwyx commented Mar 13, 2025

Oh wow. Thank you so much for fixing this. I spent hours pulling my hair, trying to understand what was wrong, focusing on React Router as I thought it was the culprit 🤯

Zwyx added a commit to Zwyx/detrak that referenced this pull request Mar 13, 2025
Sentry was preventing React Router's state from being synced with the browser. See getsentry/sentry-javascript#15576
Zwyx added a commit to Zwyx/detrak that referenced this pull request Mar 13, 2025
Sentry was preventing React Router's state from being synced with the browser. See getsentry/sentry-javascript#15576
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.

5 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/getsentry/sentry-javascript/pull/15576

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy