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 1
1
import * as React from "react" ;
2
- import { render , screen , act } from "@testing-library/react" ;
2
+ import { render , screen } from "@testing-library/react" ;
3
3
import userEvent from "@testing-library/user-event" ;
4
+ import type { Blocker } from "react-router" ;
4
5
import {
5
- Blocker ,
6
6
Link ,
7
7
Outlet ,
8
8
RouterProvider ,
Original file line number Diff line number Diff line change @@ -1290,7 +1290,7 @@ export function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker {
1290
1290
) ;
1291
1291
1292
1292
let blockerKeyRef = React . useRef < string > ( "" ) ;
1293
-
1293
+
1294
1294
// This effect is in charge of blocker key assignment and deletion (which is
1295
1295
// tightly coupled to the key)
1296
1296
React . useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments