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 6bf4723 commit edf3dbfCopy full SHA for edf3dbf
src/use-mount-effect/use-mount-effect.ts
@@ -1,9 +1,9 @@
1
-import { useEffect } from "@rbxts/react";
+import { EffectCallback, useEffect } from "@rbxts/react";
2
3
/**
4
* Runs a callback when the component is mounted.
5
* @param callback The callback to run.
6
*/
7
-export function useMountEffect(callback: () => void) {
+export function useMountEffect(callback: EffectCallback) {
8
useEffect(callback, []);
9
}
0 commit comments