Anyone used ChildPages with AndroidX Paging before...
# decompose
s
Anyone used ChildPages with AndroidX Paging before? Is that at all possible? there is only List param when creating the initial pages, so just want to check to see if I am missing something. 🤔
a
You can change pages afterwards using PagesNavigation. See: https://arkivanov.github.io/Decompose/navigation/pages/navigation/
s
Thanks! So if I understood it correctly I would have to define a initial total page count of the PagingData first with empty pages, and then use
navigate
to update the pages using the item snapshot list from the lazy paging items? 🤔
a
I never used Paging, but I think so, yes. Either append new items or replace (re-map). Depending on what is provided by Paging.
👍🏾 1
v
H Sasikanth I am using AndroidX Paging with ChildPages, and this is exactly what i do On every page load i take the new items, and add it to the PagesNavigation using
navigate