From 829d4da228cac70859d7f29d75ff252fc904ed77 Mon Sep 17 00:00:00 2001 From: Francesco Gringl-Novy Date: Fri, 31 Jan 2025 09:38:23 +0100 Subject: [PATCH] ref(react): Adapt tanstack router type (#15241) We adapted this here but did not adapt the types: https://github.com/getsentry/sentry-javascript/pull/15235 --- packages/react/src/vendor/tanstackrouter-types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/vendor/tanstackrouter-types.ts b/packages/react/src/vendor/tanstackrouter-types.ts index e5eeba71aa87..417d2b1447b1 100644 --- a/packages/react/src/vendor/tanstackrouter-types.ts +++ b/packages/react/src/vendor/tanstackrouter-types.ts @@ -46,7 +46,7 @@ export interface VendoredTanstackRouter { eventType: 'onResolved' | 'onBeforeNavigate', callback: (stateUpdate: { toLocation: VendoredTanstackRouterLocation; - fromLocation: VendoredTanstackRouterLocation; + fromLocation?: VendoredTanstackRouterLocation; }) => void, ): () => void; }