From d009af965a18ba45ae9479c67b1e8eb5f6c27354 Mon Sep 17 00:00:00 2001 From: Slate Rehm Date: Fri, 31 Jul 2026 22:52:09 -0500 Subject: [PATCH] fix: disable overlapping route view transitions - Prevent unhandled InvalidStateError during route changes --- src/router.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router.tsx b/src/router.tsx index 2be95a7..d6bebfa 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -10,9 +10,9 @@ export function getRouter() { routeTree, scrollRestoration: true, defaultPreload: "intent", - // Replaces React's from the old root layout. See the - // `.ew-vt-main` rule and the ::view-transition selectors in globals.css. - defaultViewTransition: true, + // Browser view transitions reject overlapping updates with an unhandled + // InvalidStateError. Route changes remain ordinary React transitions. + defaultViewTransition: false, // Fires from the router's CatchBoundary `componentDidCatch`, which is what // renders `AppError`. `captureException` comes from `@sentry/core` rather // than `@sentry/react` so this import does not pull the browser SDK into