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 a74c8c8 commit 06cdcf6Copy full SHA for 06cdcf6
src/use-async-effect/use-async-effect.ts
@@ -7,7 +7,7 @@ import { useEffect } from "@rbxts/react";
7
* @param effect The async effect to run.
8
* @param deps The dependencies to run the effect on.
9
*/
10
-export function useAsyncEffect(effect: () => Promise<unknown>, deps?: unknown[]) {
+export function useAsyncEffect(effect: () => Promise<any>, deps?: unknown[]) {
11
useEffect(() => {
12
const promise = effect();
13
0 commit comments