Add note about using `ExceptBy` once it's available

This commit is contained in:
Salman Ahmed 2022-11-04 19:35:00 +03:00
parent ce5aacb760
commit ee6f036c44
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ private void onSearchFinished(BeatmapListingFilterControl.SearchResult searchRes
// new results may contain beatmaps from a previous page,
// this is dodgy but matches web behaviour for now.
// see: https://github.com/ppy/osu-web/issues/9270
// todo: replace custom equality compraer with ExceptBy in net6.0
// newCards = newCards.ExceptBy(foundContent.Select(c => c.BeatmapSet.OnlineID), c => c.BeatmapSet.OnlineID);
newCards = newCards.Except(foundContent, BeatmapCardEqualityComparer.Default);
panelLoadTask = LoadComponentsAsync(newCards, loaded =>