Quantumbraid's picture
download
raw
288 Bytes
import{useEffect as c}from"react";import{useLatestValue as a}from'./use-latest-value.js';function i(t,e,o,n){let u=a(o);c(()=>{if(!t)return;function r(m){u.current(m)}return document.addEventListener(e,r,n),()=>document.removeEventListener(e,r,n)},[t,e,n])}export{i as useDocumentEvent};

Xet Storage Details

Size:
288 Bytes
·
Xet hash:
858a53d801ff2abc8f9c539d6fbdabfe84ab979a69303689993ab84da533924c

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