UNPKG

@zerochain/sdk

Version:

The Züs JS SDK is a JavaScript client library that provides a convenient interface for interacting with the Züs Network. It allows developers to perform various operations such as creating and managing allocations, uploading and downloading files, executi

2 lines (1 loc) 339 B
import{k as o}from"./chunk-5CISRDQX.mjs";import{useCallback as a,useRef as i}from"react";var n=({onLog:t,debounceTimeout:s,setIsWasmLoaded:r})=>{let e=i(0);return a(o({onLog:t,debounceTimeout:s,setIsWasmLoaded:r,getRetries:()=>e.current,incrementRetries:()=>e.current++,resetRetries:()=>e.current=0}),[t,s,r])};export{n as useWasmLoader};