We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e617a1 commit b21c955Copy full SHA for b21c955
packages/react-router/__tests__/useBlocker-test.tsx
@@ -1,8 +1,8 @@
1
import * as React from "react";
2
-import { render, screen, act } from "@testing-library/react";
+import { render, screen } from "@testing-library/react";
3
import userEvent from "@testing-library/user-event";
4
+import type { Blocker } from "react-router";
5
import {
- Blocker,
6
Link,
7
Outlet,
8
RouterProvider,
packages/react-router/lib/hooks.tsx
@@ -1290,7 +1290,7 @@ export function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker {
1290
);
1291
1292
let blockerKeyRef = React.useRef<string>("");
1293
-
+
1294
// This effect is in charge of blocker key assignment and deletion (which is
1295
// tightly coupled to the key)
1296
React.useEffect(() => {
0 commit comments