Skip to content

Commit 8114aeb

Browse files
committed
Remove future.v7_startTransition flag
1 parent d130a52 commit 8114aeb

File tree

12 files changed

+250
-670
lines changed

12 files changed

+250
-670
lines changed

.changeset/early-beds-obey.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"react-router-dom": major
3+
"react-router": major
4+
---
5+
6+
Remove `future.v7_startTransition` flag

examples/view-transitions/src/main.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,7 @@ function NavImage({ src, idx }: { src: string; idx: number }) {
246246
const rootElement = document.getElementById("root") as HTMLElement;
247247
ReactDOMClient.createRoot(rootElement).render(
248248
<React.StrictMode>
249-
<RouterProvider
250-
router={router}
251-
future={{
252-
// Wrap all state updates in React.startTransition()
253-
v7_startTransition: true,
254-
}}
255-
/>
249+
<RouterProvider router={router} />
256250
</React.StrictMode>
257251
);
258252

packages/react-router-dom/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export type {
1919
unstable_DataStrategyMatch,
2020
ErrorResponse,
2121
Fetcher,
22-
FutureConfig,
2322
Hash,
2423
IndexRouteObject,
2524
IndexRouteProps,

0 commit comments

Comments
 (0)