We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This article explains why it matters: Save UI State - Android Developers
or:
save the posts list using SavedStateHandle and declare the postListState using rememberLazyListState() in a Composable instead of using a ViewModel
0.0.66 - not fixed in 0.0.75
The text was updated successfully, but these errors were encountered:
declare the postListState using rememberLazyListState() in a Composable instead of using a ViewModel
Not possible, it used to be like this. But if you switch between home and any other tab (inbox/profile...). You will lose the position.
Thats why HomeViewmodel doesn't follow the lifecycle of HomeScreen and why it keeps the state.
Sorry, something went wrong.
No branches or pull requests
This article explains why it matters: Save UI State - Android Developers
Problem: when I perform this sequence of events the LazyColumn's scroll position resets:
or:
Possible solution:
save the posts list using SavedStateHandle and declare the postListState using rememberLazyListState() in a Composable instead of using a ViewModel
Screenshots:
Version:
0.0.66 - not fixed in 0.0.75
The text was updated successfully, but these errors were encountered: