Closed Zergity closed 3 years ago
Is it necessary to support loading in the library. Client can control loading show and hide simply by
const { account, active, activate, deactivate } = useWeb3React()
const [ loading, setLoading ] = useState(false)
onConnect(()=>{
.......
setLoading(true)
})
return (
...
{!active && loading && renderLoadingComp()}
)
@Zergity
Is it necessary to support loading in the library. Client can control loading show and hide simply by
const { account, active, activate, deactivate } = useWeb3React() const [ loading, setLoading ] = useState(false) onConnect(()=>{ ....... setLoading(true) }) return ( ... {!active && loading && renderLoadingComp()} )
@Zergity
makes sense, let backlog this for now
e.g. Torus