Skip to content

Conversation

@YangQi0408
Copy link
Contributor

Check for APM updates only when first entering the APM page or refreshing the APM page

before

QQ20251223-221534.mp4

"Attack" the GitHub server lol

Signed-off-by: YangQi0408 <a123er3643@163.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the APM (Android Patch Manager) module update checking by preventing redundant API calls to GitHub. The optimization introduces a flag to track whether an update check has been performed for each module, ensuring checks only occur once per session rather than on every recomposition.

Key changes:

  • Added updateCheckDone state flag to track completion of update checks per module
  • Wrapped the checkUpdate call in a conditional that only executes when updateCheckDone is false

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: YangQi0408 <a123er3643@163.com>
@YangQi0408
Copy link
Contributor Author

@pomelohan please review again, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants