Closed rin-st closed 5 months ago
readEvents
useCallback
fromBlock
if (fromBlock)
readEvents();
if (!deployedContractLoading) { readEvents(); }
The one without if (!deployedContractLoading) was buggy - on load it threw errors to the console
if (!deployedContractLoading)
[]
Thanks! Merging this
Description
readEvents
touseCallback
, so it's clear which dependencies it hasfromBlock
is required prop, removed if's likeif (fromBlock)
readEvents();
andThe one without
if (!deployedContractLoading)
was buggy - on load it threw errors to the console[]
, so we don't guess is it array or undefinedAdditional Information