securityos/node_modules/framer-motion/dist/es/projection/use-instant-layout-transiti...

15 lines
396 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import { rootProjectionNode } from './node/HTMLProjectionNode.mjs';
function useInstantLayoutTransition() {
return startTransition;
}
function startTransition(callback) {
if (!rootProjectionNode.current)
return;
rootProjectionNode.current.isUpdating = false;
rootProjectionNode.current.blockUpdate();
callback && callback();
}
export { useInstantLayoutTransition };