lisawray / groupie

Groupie helps you display and manage complex RecyclerView layouts.
MIT License
3.66k stars 293 forks source link

Updating specific section / group #429

Open Veeksi opened 2 years ago

Veeksi commented 2 years ago

Hey and thanks for this wonderful library,

What is the proper way to update specific section? Like in this example, we have n amount of sections that contain header and horizontal carousel. If I use updateAsync, I have to add all those sections even though I edit only carousel items in section 1. This usecase comes handy when Section 1 can contain for example two types of data (e.g. movie items / series) that can be controlled by filter menu, and therefore when the filter changes it could be cool to not update section 2 because the filter does not control it.

RecyclerView
    Section 1
        Header 1
        CarouselGroup 1 (Horizontal list)
            CarouselItems 1
    Section 2 
        Header 2
        CarouselGroup 2
            CarouselItems 2