I am using SQL Delight + Paging with CashApp Paging and I have this issue
I have a screen displaying a paged list from a table and I navigate to some other screen which either adds or updated items in the same table and come back
My screen scroll state is lost
• I see
itemCount
is 0
•
loadState.mediator
is null
When i change the dispatcher passed in
collectAsLazyPagingitems()
to
Main.immediate
, I dont see loadState being null, but still my whole screen scroll state is lost
Only happens when some item gets added or updated in the other screen
Link to Discussion - https://github.com/cashapp/sqldelight/discussions/5103