Quantumbraid's picture
download
raw
384 Bytes
import{useRef as i}from"react";import{useIsoMorphicEffect as u}from'./use-iso-morphic-effect.js';function s(n,t){let e=i({left:0,top:0});if(u(()=>{if(!t)return;let r=t.getBoundingClientRect();r&&(e.current=r)},[n,t]),t==null||!n||t===document.activeElement)return!1;let o=t.getBoundingClientRect();return o.top!==e.current.top||o.left!==e.current.left}export{s as useDidElementMove};

Xet Storage Details

Size:
384 Bytes
·
Xet hash:
b5322d03397afa592c7c31c23cd354ea7b6b9ff21c4c98964ebea16991a86635

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.