trufflesuite / drizzle

Reactive Ethereum dapp UI suite
905 stars 235 forks source link

Use strict equality for hook comparisons #21

Closed mrice32 closed 4 years ago

mrice32 commented 4 years ago

When not using strict equality, useDrizzleState and useCacheCall are insensitive to the difference between null and undefined. However, drizzle uses undefined to imply that a value has not been returned, but uses null to imply that an error or empty value was returned.

adrianmcli commented 4 years ago

Good one, thanks @mrice32