From a8b8e7325f0088b8c21d59558b7feba6421d22f0 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 3 May 2024 11:13:26 -0700 Subject: [PATCH 1/4] Check for `document` existence when checking `startViewTransition` --- packages/react-router-dom/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-router-dom/index.tsx b/packages/react-router-dom/index.tsx index 1d4675396e..1f2e515f75 100644 --- a/packages/react-router-dom/index.tsx +++ b/packages/react-router-dom/index.tsx @@ -526,6 +526,7 @@ export function RouterProvider({ let isViewTransitionUnavailable = router.window == null || + router.window.document == null || typeof router.window.document.startViewTransition !== "function"; // If this isn't a view transition or it's not available in this browser, From 002e2f1dd107eaefb3d0e79774d2c1e1638fb441 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 3 May 2024 11:15:51 -0700 Subject: [PATCH 2/4] Sign CLA --- contributors.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.yml b/contributors.yml index a2aab00d2e..d3c533fac1 100644 --- a/contributors.yml +++ b/contributors.yml @@ -241,6 +241,7 @@ - tlinhart - tom-sherman - tomasr8 +- TooTallNate - triangularcube - trungpv1601 - turansky From 481e20c55cd60f00f152e16d25bb4affa91096b7 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 3 May 2024 11:18:05 -0700 Subject: [PATCH 3/4] Create good-donkeys-kiss.md --- .changeset/good-donkeys-kiss.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/good-donkeys-kiss.md diff --git a/.changeset/good-donkeys-kiss.md b/.changeset/good-donkeys-kiss.md new file mode 100644 index 0000000000..e2dce8a169 --- /dev/null +++ b/.changeset/good-donkeys-kiss.md @@ -0,0 +1,6 @@ +--- +"react-router": patch +"react-router-dom": patch +--- + +Check for `document` existence when checking `startViewTransition` From 6db82d34ef0778d609d2a010d8e8feb6dac1fd6e Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Wed, 8 May 2024 07:35:23 -0400 Subject: [PATCH 4/4] Update .changeset/good-donkeys-kiss.md --- .changeset/good-donkeys-kiss.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.changeset/good-donkeys-kiss.md b/.changeset/good-donkeys-kiss.md index e2dce8a169..15be073c5d 100644 --- a/.changeset/good-donkeys-kiss.md +++ b/.changeset/good-donkeys-kiss.md @@ -1,5 +1,4 @@ --- -"react-router": patch "react-router-dom": patch ---