Skip to content

Commit 378c56c

Browse files
authored
Changed function passed to effect to be void returning.
1 parent d52dbb9 commit 378c56c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/preact/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export function useSignalEffect(cb: () => unknown | (() => unknown)) {
361361
callback.current = cb;
362362

363363
useEffect(() => {
364-
return effect(() => callback.current());
364+
return effect(() => { callback.current() });
365365
}, []);
366366
}
367367

0 commit comments

Comments
 (0)