Navigating from offline to online mode uses popUpTo { inclusive = true }, which destroys the NavBackStackEntry and its ViewModel — resetting the LazyGridState scroll position. Additionally, key-based scroll tracking causes the grid to jump during startup as data sources load incrementally.
Navigating from offline to online mode uses
popUpTo { inclusive = true }, which destroys the NavBackStackEntry and its ViewModel — resetting theLazyGridStatescroll position. Additionally, key-based scroll tracking causes the grid to jump during startup as data sources load incrementally.