File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import * as React from "react" ;
2- import { render , screen , act } from "@testing-library/react" ;
2+ import { render , screen } from "@testing-library/react" ;
33import userEvent from "@testing-library/user-event" ;
4+ import type { Blocker } from "react-router" ;
45import {
5- Blocker ,
66 Link ,
77 Outlet ,
88 RouterProvider ,
Original file line number Diff line number Diff line change @@ -1290,7 +1290,7 @@ export function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker {
12901290 ) ;
12911291
12921292 let blockerKeyRef = React . useRef < string > ( "" ) ;
1293-
1293+
12941294 // This effect is in charge of blocker key assignment and deletion (which is
12951295 // tightly coupled to the key)
12961296 React . useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments