Closed louisinger closed 1 year ago
It may be a non-issue, but does having these injected via Context causing re-rendering al all child components everytime a new tx is computed?
From my React understanding, only the components using the prop cache.transactions
will be re-rendered.
nly the components using the prop
yep, I did not review the code but want to make sure we confirm we not introducing unnecessary re-renders
yep, I did not review the code but want to make sure we confirm we not introducing unnecessary re-renders
To be honest if think it's equivalent in terms of react rendering but for sure it reduces the number of repository calls
Can you fix conflicts @louisinger ?
This PR drops the
useSelectTransactions
hook used intransactions
view and compute the transactions list from repositories inside theStorageContext
component. It lets to:the PR also use that newly cached transactions list to filter the asset in
Home
view. it closes #437@tiero @bordalix please review this