Skip to content

Commit 279b48f

Browse files
committed
🐛 fix broken import in useAbortController
1 parent 5d00538 commit 279b48f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/useAbortController/useAbortController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback, useLayoutEffect, useState } from 'react';
22
import getAbortController from './getAbortController';
3-
import useMounted from '../useMounted';
3+
import useMounted from '../hooks/useMounted';
44

55
export type UseAbortControllerResult = {
66
abort: () => void;
@@ -13,6 +13,7 @@ export type UseAbortControllerResult = {
1313
*/
1414
function useAbortController(): UseAbortControllerResult {
1515
const mounted = useMounted();
16+
1617
const [controller, setController] = useState(getAbortController);
1718

1819
useLayoutEffect(() => () => controller?.abort(), [controller]);

0 commit comments

Comments
 (0)