We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89295c7 commit df97e72Copy full SHA for df97e72
src/use-async-effect.ts
@@ -1,6 +1,6 @@
1
import { useEffect, useRef } from "react";
2
3
-const noop = () => {};
+const noop = () => { };
4
5
export const useAsyncEffect = (
6
createGenerator: (
@@ -9,7 +9,7 @@ export const useAsyncEffect = (
9
onCancelError?: null | ((err: Error) => void)
10
) => void
11
) => // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
- IterableIterator<any>,
+ Iterator<any, any, any>,
13
deps: React.DependencyList
14
) => {
15
const generatorRef = useRef(createGenerator);
0 commit comments