Blame view

天文台pc/tianwentai-ui/node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs 385 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  import { useCallback } from 'react';
  import { rootProjectionNode } from 'motion-dom';
  
  function useResetProjection() {
      const reset = useCallback(() => {
          const root = rootProjectionNode.current;
          if (!root)
              return;
          root.resetTree();
      }, []);
      return reset;
  }
  
  export { useResetProjection };
  //# sourceMappingURL=use-reset-projection.mjs.map