8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36bdc47 commit 0a9c4d0Copy full SHA for 0a9c4d0
packages/react/src/tanstackrouter.ts
@@ -65,7 +65,7 @@ export function tanstackRouterBrowserTracingIntegration(
65
// The onBeforeNavigate hook is called at the very beginning of a navigation and is only called once per navigation, even when the user is redirected
66
castRouterInstance.subscribe('onBeforeNavigate', onBeforeNavigateArgs => {
67
// onBeforeNavigate is called during pageloads. We can avoid creating navigation spans by comparing the states of the to and from arguments.
68
- if (onBeforeNavigateArgs.toLocation.state === onBeforeNavigateArgs.fromLocation.state) {
+ if (onBeforeNavigateArgs.toLocation.state === onBeforeNavigateArgs.fromLocation?.state) {
69
return;
70
}
71
0 commit comments