UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 475 B
import{a as c}from"./chunk-EZIX2JCN.js";import{a as r}from"./chunk-QR6CHETZ.js";import{a as n}from"./chunk-MSAK7AB3.js";import{m as a}from"./chunk-HBP5N4FR.js";a();import{useEffect as h}from"react";function H(e){var t;let o=r(),i=(t=e==null?void 0:e.getTransactionsByHash)!=null?t:n,s=()=>{o({shouldRefreshBalance:!0,getTransactionsByHash:i})};c(s),h(()=>{let T=setInterval(s,3e4);return()=>{clearInterval(T)}},[s])}export{H as a}; //# sourceMappingURL=chunk-SF456JHT.js.map