engineer-dao / platform

The EngineerDAO dApp for interacting with job contracts
engineer-dao-platform.vercel.app
6 stars 4 forks source link

Fix: Memoize calls to Ethereum API #148

Closed deweller closed 2 years ago

deweller commented 2 years ago

Loading a job page without a wallet connected requires 13 calls to ropsten.infura.io/v3/...

Many of these calls are duplicates, each called in the useJob hook.

A short term solution would be to assign a root-level provider that reports the current ethereum transaction and allows useJob to memoize contract calls based on the latest mined block.