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)
Unintended behavior
View staffing
Description
Component used: paging
Version used: 3.3.5
Devices/Android versions reproduced on: emulator
Currently returning
InitializeAction.LAUNCH_INITIAL_REFRESH
frominitialize()
queues prepend/append calls to fire after the refresh completes. This causes multiple issues:PagingState
for the append/prepend calls may be stale making it unreliable.While the documentation covers this behavior it does not explain how to actually handle it. From my investigation I'm not sure if it's even possible. Even the sample RemoteMediator in the docs gets this wrong .
I propose instead the behavior of
LAUNCH_INITIAL_REFRESH
should: