binding-collection-adapter icon indicating copy to clipboard operation
binding-collection-adapter copied to clipboard

Support PagingData + coroutines?

Open llleodeleon opened this issue 5 years ago • 4 comments
trafficstars

PagedList has been deprecated in the latest version of the jetpack Paging library.

Is it possible to have an adapter that works with PagingData?

llleodeleon avatar Jul 02 '20 14:07 llleodeleon

The new paging lib is still in alpha, but if someone wants to submit a pr I'd be happy to take a look.

evant avatar Jul 02 '20 14:07 evant

I have a PR in the works. I'm putting together a sample. will see how it goes.

Using AsyncPagingDataDiffer to update the BindingRecyclerViewAdapter. Could store that in the view tag instead of the ObserveableList. ...or maintain an ObserveableList in memory based on the diff. anyway I'll see how it goes.

kedzie avatar Aug 05 '20 19:08 kedzie

PR up. would like to hear your thoughts. #194

kedzie avatar Aug 06 '20 00:08 kedzie

Keen on this too!

KatieBarnett avatar Sep 18 '20 01:09 KatieBarnett