Mission Control Dashboard - Initial implementation
This commit is contained in:
17
node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
generated
vendored
Normal file
17
node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
import { useRef } from 'react';
|
||||
import { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';
|
||||
|
||||
function useIsMounted() {
|
||||
const isMounted = useRef(false);
|
||||
useIsomorphicLayoutEffect(() => {
|
||||
isMounted.current = true;
|
||||
return () => {
|
||||
isMounted.current = false;
|
||||
};
|
||||
}, []);
|
||||
return isMounted;
|
||||
}
|
||||
|
||||
export { useIsMounted };
|
||||
//# sourceMappingURL=use-is-mounted.mjs.map
|
||||
Reference in New Issue
Block a user