Quantumbraid/trainingdata / ui /node_modules /@headlessui /react /dist /hooks /use-server-handoff-complete.js
Quantumbraid's picture
download
raw
421 Bytes
import*as t from"react";import{env as f}from'../utils/env.js';function s(){let r=typeof document=="undefined";return"useSyncExternalStore"in t?(o=>o.useSyncExternalStore)(t)(()=>()=>{},()=>!1,()=>!r):!1}function l(){let r=s(),[e,n]=t.useState(f.isHandoffComplete);return e&&f.isHandoffComplete===!1&&n(!1),t.useEffect(()=>{e!==!0&&n(!0)},[e]),t.useEffect(()=>f.handoff(),[]),r?!1:e}export{l as useServerHandoffComplete};

Xet Storage Details

Size:
421 Bytes
·
Xet hash:
0645b228ae90be0b3b1883fd5046718e37f7581caa5384c144a1593997961fc8

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