Conversation
| if (Meteor.isClient){ | ||
| transactionsHandle = Meteor.subscribe('transactions.list', props.limit); | ||
| loading = !transactionsHandle.ready(); | ||
| loading = !transactionsHandle.ready() && props.limit == Meteor.settings.public.initialPageSize; |
There was a problem hiding this comment.
@MonikaCat yes this would fix the display issue. However, if the txs are being loaded continuously, the DOM will be rendering too many components if the users keeps scrolling. Can you do a test and see if the screen will be laggy after some scrolls?
There was a problem hiding this comment.
Sure! The screen becomes a little bit laggy after scrolling down multiple times.
I have wrapped the list in Container so we can track scrolling only of the list component. The overall performance of the page has improved and the transactions are loading faster. What do you think?
There was a problem hiding this comment.
I don't understand. Why wrapped inside a <Container> would improve performance? I think the <List> component is still querying and rendering components controlled by limit?
20404de to
59fe187
Compare
59fe187 to
e396a9d
Compare
Description
Fixes #447
Checklist
meteor npm run lintCHANGELOG.mdfile.Files changedin the Github PR explorer.