Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
RemoteMediator requires a lot of duplication of effort with PagingSource.
Let's explore creating a simpler RemoteMediator API based on PagingSource, which sacrifices a little customizability for an extremely simple API, similar to early explorations.
For inspiration here, see also Store'shttps://github.com/dropbox/Store#fully-configured-store
SourceOfTruth.of()
:The item-keyed variant could look something like the following (would need another variant to handle key storage):