redundant file
This commit is contained in:
parent
a9f35c84dd
commit
91ca0ac028
|
|
@ -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);
|
||||
};
|
||||
Loading…
Reference in New Issue