removes duplicate dashboard data load from the Delegation component (the data already gets loaded in the parent component)
How did you action this task?
React 18 strict mode triggers useEffect and useMemo hooks twice when mounting (in development). This results in a pretty poor developer experience as it causes our data hooks to trigger 3 times on mount (the third trigger is caused by the useMemo'ed smart contracts which are included in the useEffect dependency arrays). For me, it feels like the DX hit is too large, so this PR turns off strict mode.
What does this change?
Delegation
component (the data already gets loaded in the parent component)How did you action this task?
React 18 strict mode triggers
useEffect
anduseMemo
hooks twice when mounting (in development). This results in a pretty poor developer experience as it causes our data hooks to trigger 3 times on mount (the third trigger is caused by theuseMemo
'ed smart contracts which are included in theuseEffect
dependency arrays). For me, it feels like the DX hit is too large, so this PR turns off strict mode.