onebusaway-ios icon indicating copy to clipboard operation
onebusaway-ios copied to clipboard

OBAListView always reloading data (instead of performing diff)

Open ualch9 opened this issue 3 years ago • 2 comments

After #391, all applyData calls result in the list view reloading all data. See attached video.

https://user-images.githubusercontent.com/22162410/123139623-44447d00-d40b-11eb-9b13-ef16cb967260.mov

Originally posted by @ualch9 in https://github.com/OneBusAway/OBAKit/issues/389#issuecomment-867014676

ualch9 avatar Jul 13 '21 16:07 ualch9

This is not a breaking issue, and commit 2324956 provides a workaround in StopViewController for this problem.

ualch9 avatar Jul 13 '21 16:07 ualch9

https://developer.apple.com/documentation/uikit/views_and_controls/collection_views/updating_collection_views_using_diffable_data_sources

ualch9 avatar Nov 25 '21 08:11 ualch9