Migrate to app router (#2254)

This commit is contained in:
jake authored and GitHub committed 2025-02-07 11:33:38 -05:00
1 parent e97613dda5
commit 8aabb4a66f
179 files changed
+4095 -4951

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
import { useEffect } from "react";
import useFirstMountState from "./useFirstMountState";
// identical to `useEffect()` but ignores the first invocation
const useUpdateEffect: typeof useEffect = (effect, deps) => {
const isFirstMount = useFirstMountState();
useEffect(() => {
if (!isFirstMount) {
return effect();
}
}, deps); // eslint-disable-line react-hooks/exhaustive-deps
};
export default useUpdateEffect;