redundant file

This commit is contained in:
VividTruthKeeper 2022-08-29 23:57:23 +05:00
parent a9f35c84dd
commit 91ca0ac028
1 changed files with 0 additions and 12 deletions

View File

@ -1,12 +0,0 @@
import { useRef, useEffect } from "react";
export const useDidUpdateEffect = (fn: () => void, inputs: any) => {
const didMountRef = useRef(false);
useEffect(() => {
if (didMountRef.current) {
return fn();
}
didMountRef.current = true;
}, inputs);
};