rusk icon indicating copy to clipboard operation
rusk copied to clipboard

Optimize auto re-renders of relative times

Open ascartabelli opened this issue 7 months ago • 0 comments

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

ascartabelli avatar Aug 01 '24 09:08 ascartabelli