-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce the number of unnecessary home page reloads #5969
Conversation
4f26993
to
08b48b6
Compare
} | ||
multicastDelegate.invoke { $0.recentsListServiceDidChangeData?(self, |
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.
Seems like we have been doing 2 updates when only one was necessary
📱 Scan the QR code below to install the build for this PR. If you can't scan the QR code you can install the build via this link: https://i.diawi.com/EKH8Az |
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.
LGTM. Please apply the 2 suggested changes to be compliant with the syntax for objective-c files.
} | ||
} else { |
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.
} else { | |
} | |
else | |
{ |
} | ||
} else if (!changes) { |
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.
} else if (!changes) { | |
} | |
else if (!changes) | |
{ |
Fixes #5619
After a refactor where home sections are represented as enum values it is now easier to compare the changes coming from list sources and more accurately determine whether to reload the entire table view (when sections have changed) versus when to only update individual sections.
Overal this change should lead to fewer unnecessary reloads of the entire home screen.