aboutlo / ether-swr

Ether-SWR is a React hook that fetches Ethereum data. It streamlines the chores to keep the internal state of the Decentralized App (DApp), batches the RPC calls to an Ethereum node and cache the responses
MIT License
138 stars 12 forks source link

Conditional Arg1 doesn't work #1

Closed aktary closed 3 years ago

aktary commented 4 years ago

The way things are structured now, the conditional execution built into SWR doesn't work. Passing a falsey value into Arg1 still results in execution.

aboutlo commented 4 years ago

Can you provide a minimal example of what you are trying to do? Regardless, the package provides just a fetcher function for now. if there is an issue it could be in SWR.