-
Notifications
You must be signed in to change notification settings - Fork 243
Fixed transactions page scrolling issue #511
base: master
Are you sure you want to change the base?
Conversation
@@ -9,7 +9,7 @@ export default ValidatorDetailsContainer = withTracker((props) => { | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 lint
CHANGELOG.md
file.Files changed
in the Github PR explorer.