There was an error while loading. Please reload this page.
2 parents 8700ad2 + 8b24df4 commit 2f70dc2Copy full SHA for 2f70dc2
src/useUpdateEffect.ts
@@ -7,7 +7,7 @@ const useUpdateEffect: typeof useEffect = (effect, deps) => {
7
if (isInitialMount.current) {
8
isInitialMount.current = false;
9
} else {
10
- effect();
+ return effect();
11
}
12
}, deps);
13
};
0 commit comments