Skip to content

Commit b21c955

Browse files
author
Fan YANG
committed
fix linting
1 parent 5e617a1 commit b21c955

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-router/__tests__/useBlocker-test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as React from "react";
2-
import { render, screen, act } from "@testing-library/react";
2+
import { render, screen } from "@testing-library/react";
33
import userEvent from "@testing-library/user-event";
4+
import type { Blocker } from "react-router";
45
import {
5-
Blocker,
66
Link,
77
Outlet,
88
RouterProvider,

packages/react-router/lib/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(() => {

0 commit comments

Comments
 (0)