Uniswap / redux-multicall

A React + Redux library for fetching, batching, and caching chain state via the MultiCall contract.
MIT License
95 stars 54 forks source link

feat: memoize inputs array for useSingleCallResult #24

Closed tinaszheng closed 2 years ago

tinaszheng commented 2 years ago

We were noticing that the return value from useSingleCallResult was a new array object on every render. This was essentially passing a new [inputs] array object on every render, making the downstream useMemo calls obsolete.

lynnshaoyu commented 2 years ago

omg

lol