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
This sample code is pretty interesting. They use NSOperationQueue or DispatchQueue. There's lots of boilerplate there that we should attempt to encapsulate. Clients can give us a queue, or we can maintain our own.
The text was updated successfully, but these errors were encountered:
jessesquires
changed the title
[DataSource] implement prefetching?
[DataSource] implement prefetching? (probably not)
Nov 29, 2019
Discussion
Initial thoughts:
DataPrefetchAdapter
class that conforms toUICollectionViewDataSourcePrefetching
CollectionViewDriver
and hook it up to thecollectionView.prefetchDataSource
Potential problems
CollectionViewModel
is designed to be stateless, so maybe this just doesn't make sense?CollectionViewModel
? WouldCellViewModel
instances be mutable?Docs
Sample Code
This sample code is pretty interesting. They use
NSOperationQueue
orDispatchQueue
. There's lots of boilerplate there that we should attempt to encapsulate. Clients can give us a queue, or we can maintain our own.The text was updated successfully, but these errors were encountered: