-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(tracing): Don't finish React Router 6 pageload transactions early
#6609
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
Conversation
|
@lforst -- Ran it through debugger, and seems to be working fine. (with and without HMR involved) 👍 |
@onurtemizkan Awesome, thanks for testing. I will pass this by someone from the team and merge it in. I think we can close #6599 in the meanwhile - thanks for doing the foundational work!! |
pageload transactions early
size-limit report 📦
|
onurtemizkan
left a comment
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 good to me! 🚀
Lms24
left a comment
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.
Great work, looks like a good fix to me!
packages/react/src/reactrouterv6.tsx
Outdated
|
|
||
| let isBaseLocation: boolean = false; | ||
| let routes: RouteObject[]; | ||
| let previousLocation: Location | null = null; |
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.
l: As discussed we can change this to a boolean
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.
Fixes #6470
This PR fixes a bug where we prematurely finish pageload transactions in our React Router 6 implementation due to some funky logic.
h/t to @onurtemizkan for doing the foundational work on this in #6599