framer-motion
Version:
A simple and powerful React animation library
14 lines (11 loc) • 335 B
JavaScript
import { useConstant } from '../../utils/use-constant.mjs';
import { globalProjectionState } from './create-projection-node.mjs';
var id = 1;
function useProjectionId() {
return useConstant(function () {
if (globalProjectionState.hasEverUpdated) {
return id++;
}
});
}
export { useProjectionId };