Skip to content

Commit

Permalink
Remove from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jun 24, 2024
1 parent 8114aeb commit bc69187
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe("Handles concurrent mode features during navigations", () => {
getComponents();

let { container } = render(
<MemoryRouter future={{ v7_startTransition: true }}>
<MemoryRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route
Expand Down Expand Up @@ -149,10 +149,7 @@ describe("Handles concurrent mode features during navigations", () => {
getComponents();

let { container } = render(
<BrowserRouter
window={getWindowImpl("/", false)}
future={{ v7_startTransition: true }}
>
<BrowserRouter window={getWindowImpl("/", false)}>
<Routes>
<Route path="/" element={<Home />} />
<Route
Expand Down Expand Up @@ -184,10 +181,7 @@ describe("Handles concurrent mode features during navigations", () => {
getComponents();

let { container } = render(
<HashRouter
window={getWindowImpl("/", true)}
future={{ v7_startTransition: true }}
>
<HashRouter window={getWindowImpl("/", true)}>
<Routes>
<Route path="/" element={<Home />} />
<Route
Expand Down Expand Up @@ -241,9 +235,7 @@ describe("Handles concurrent mode features during navigations", () => {
</>
)
);
let { container } = render(
<RouterProvider router={router} future={{ v7_startTransition: true }} />
);
let { container } = render(<RouterProvider router={router} />);

await assertNavigation(container, resolve, resolveLazy);
});
Expand Down Expand Up @@ -296,7 +288,7 @@ describe("Handles concurrent mode features during navigations", () => {
getComponents();

let { container } = render(
<MemoryRouter future={{ v7_startTransition: true }}>
<MemoryRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
Expand All @@ -314,10 +306,7 @@ describe("Handles concurrent mode features during navigations", () => {
getComponents();

let { container } = render(
<BrowserRouter
window-={getWindowImpl("/", true)}
future={{ v7_startTransition: true }}
>
<BrowserRouter window-={getWindowImpl("/", true)}>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
Expand All @@ -335,10 +324,7 @@ describe("Handles concurrent mode features during navigations", () => {
getComponents();

let { container } = render(
<HashRouter
window-={getWindowImpl("/", true)}
future={{ v7_startTransition: true }}
>
<HashRouter window-={getWindowImpl("/", true)}>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
Expand All @@ -364,9 +350,7 @@ describe("Handles concurrent mode features during navigations", () => {
</>
)
);
let { container } = render(
<RouterProvider router={router} future={{ v7_startTransition: true }} />
);
let { container } = render(<RouterProvider router={router} />);

await assertNavigation(container, resolve, resolveLazy);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ describe("flushSync", () => {
window: getWindowImpl("/"),
}
);
render(
<RouterProvider router={router} future={{ v7_startTransition: true }} />
);
render(<RouterProvider router={router} />);

// This isn't the best way to test this but it seems that startTransition is
// performing sync updates in the test/JSDOM/whatever environment which is
Expand Down Expand Up @@ -127,9 +125,7 @@ describe("flushSync", () => {
window: getWindowImpl("/"),
}
);
render(
<RouterProvider router={router} future={{ v7_startTransition: true }} />
);
render(<RouterProvider router={router} />);

// This isn't the best way to test this but it seems that startTransition is
// performing sync updates in the test/JSDOM/whatever environment which is
Expand Down Expand Up @@ -191,9 +187,7 @@ describe("flushSync", () => {
window: getWindowImpl("/"),
}
);
render(
<RouterProvider router={router} future={{ v7_startTransition: true }} />
);
render(<RouterProvider router={router} />);

// This isn't the best way to test this but it seems that startTransition is
// performing sync updates in the test/JSDOM/whatever environment which is
Expand Down Expand Up @@ -256,9 +250,7 @@ describe("flushSync", () => {
window: getWindowImpl("/"),
}
);
render(
<RouterProvider router={router} future={{ v7_startTransition: true }} />
);
render(<RouterProvider router={router} />);

// This isn't the best way to test this but it seems that startTransition is
// performing sync updates in the test/JSDOM/whatever environment which is
Expand Down
8 changes: 4 additions & 4 deletions packages/react-router/__tests__/navigate-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ describe("concurrent mode (using React.startTransition for updates)", () => {

let { container } = render(
<React.StrictMode>
<RouterProvider router={router} future={{ v7_startTransition: true }} />
<RouterProvider router={router} />
</React.StrictMode>
);

Expand Down Expand Up @@ -673,7 +673,7 @@ describe("concurrent mode (using React.startTransition for updates)", () => {

let { container } = render(
<React.StrictMode>
<RouterProvider router={router} future={{ v7_startTransition: true }} />
<RouterProvider router={router} />
</React.StrictMode>
);

Expand Down Expand Up @@ -746,7 +746,7 @@ describe("concurrent mode (using React.startTransition for updates)", () => {

let { container } = render(
<React.StrictMode>
<RouterProvider router={router} future={{ v7_startTransition: true }} />
<RouterProvider router={router} />
</React.StrictMode>
);

Expand Down Expand Up @@ -821,7 +821,7 @@ describe("concurrent mode (using React.startTransition for updates)", () => {

let { container } = render(
<React.StrictMode>
<RouterProvider router={router} future={{ v7_startTransition: true }} />
<RouterProvider router={router} />
</React.StrictMode>
);

Expand Down

0 comments on commit bc69187

Please sign in to comment.