IGListKit icon indicating copy to clipboard operation
IGListKit copied to clipboard

ListBindingSectionController did not use the current cell

Open seanliu1 opened this issue 6 years ago • 1 comments

New issue checklist

General information

IGLIstKit 3.4 iOS 13 Xcode 5 Swift

Debug information

I did some testing for ListBindSectionController, I am a little bit surprised that when we call update if anything we need to update, iglistkit did not try to grab the same visible cell which the section controller binds to. Instead, it try to reuse other cells. Would it be better to get visible cell and directly call bindViewModel on the same cell?

The only downside I can see is that if cell height needs to change, it wont be able to deal with it

seanliu1 avatar Dec 11 '19 01:12 seanliu1

Would it be better to get visible cell and directly call bindViewModel on the same cell?

Sounds like a bad idea here, since the whole point of ListBindSectionController is to avoid reusing other cells for updates. Could u share me some sample code so I can help further? How many items do you have for you BindSection?

lorixx avatar Dec 11 '19 05:12 lorixx