You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SvelteKit: load wrappers read event.url.pathname tracked, so every instrumented load reruns on navigation #25231
The wrapper doesn't add a URL dependency to the load. Like 10.x, where event.url.pathname was only read as a fallback span name when there's no route id.
Actual Result
The layout load reruns on every navigation. The url.path attribute added in #24341 reads event.url.pathname outside untrack in wrapLoadWithSentry (client and server) and wrapServerLoadWithSentry, so SvelteKit marks every wrapped load as depending on the pathname. With auto-instrumentation on, that's every load in the app, including root layouts that fetch session data.
Additional Context
getRouteId already reads event.route.id through event.untrack for exactly this reason. Reading the pathname the same way fixes it. We're carrying this as a patch on 11.6.0:
Activity
linear-code commentedon Oct 9, 2026
JS-3903
chargome commentedon Oct 9, 2026
@ndri thanks for the report, we'll check it out!
test(sveltekit): Add e2e test for layout loads not rerunning on navig…
fix(sveltekit): Read load event pathname untracked (getsentry#25235)
github-actions commentedon Oct 12, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #25235, which was included in the 11.7.0 release.