rusk
rusk copied to clipboard
Optimize auto re-renders of relative times
Summary
- in the block details the whole
TransactionsList
was being re-rendered every second (this also caused tooltips to be buggy on mobile view). We just need to update the<time/>
content. - abstract the relative time in a separate component
- add option to avoid re-renders in the
Rerender
component when the content is equal to the previous one