@ianlake The broad problem I have is that there appears to be no way for me to perform a local-only update that doesn't require a full refresh from the the network.
The concrete example in my situation is this: I fetch a list of news items from a remote API and map it into a domain type with fields sourced from a local database. On a database change, I would like to be able to patch in that updated item into the state maintained by Paging.
@msfjarvis mmm, but Paging itself doesn't care if the PagingSource you write is backed by a database directly (e.g., what the room-paging integration requires) or an amalgamation of two sources (web loaded content that isn't in a database + database content)?
A PagingSource load() can similarly do whatever you want based on the freshness of cached web content (i.e., not reload web content that is already up to date while always loading the latest local data) to form the final data to present.
@ianlake @msfjarvis @friendlymike @pixellight
Latest (on personal currently) - https://github.com/matt-ramotar/paging
Store branch - https://github.com/MobileNativeFoundation/Store/tree/paging
@mattramotar @msfjarvis @friendlymike @pixellight Paging is very much based on having a source of truth, so mutations are indeed something that would need to be reflected in that source of truth to then feed up through the rest of the system, but I'm not sure what you mean by custom middleware, reducers, and post-reducer effects?
If there were changes you thought you needed on the Paging side for Store, did you have a chance to file issues for them? I'd be interested in looking them over.