You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Currently PackageManager::loadOutdated() is stateless, and it sucks. Anytime any part of the settings view needs to know what outdated packages there are, it needs to hit the network and ask. This leads to #409. And this is being exacerbated by package cards in any view that can have the update information. No bueno.
We should cache the outdated packages in the settings view's PackageManager. loadOutdated could do the network bit, load the cache, and emit events. This method could be called when it is currently for the status bar icon. Every consumer of the outdated data can call some other method like getOutdated which could return a promise, just in case the cache isnt loaded up yet.
As far as I can tell in my latest tests (with #887) there is caching going on in loadOutdated, and the updates panel loads fast. As in, it takes longer to load the font icons then it does to load the package cards.
Activity
winstliu commentedon Dec 11, 2016
As far as I can tell in my latest tests (with #887) there is caching going on in loadOutdated, and the updates panel loads fast. As in, it takes longer to load the font icons then it does to load the package cards.
Closing.