Skip to content
New issue

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

[Navigation] List scroll position is lost when app gets focus back #470

Open
AkesiSeli opened this issue Nov 9, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@AkesiSeli
Copy link
Collaborator

AkesiSeli commented Nov 9, 2024

After opening an external URL in the browser, the current timelines resets back to its top position and the original scroll position is lost.


Original report on Friendica.

@AkesiSeli AkesiSeli changed the title [Navigation] List state is lost when opening an external URL [Navigation] List scroll position is lost when app gets focus back Nov 9, 2024
@AkesiSeli
Copy link
Collaborator Author

It turned out, since the URL is opened in another application, that the issue is related to state restoration after process death. I hope common ViewModels will allow to solve the issue using SavedStateHandles just like in plain native code.

However, they are compatible with Voyager only starting from 1.1.0-beta01 so I should either:

  • wait Voyager 1.1.0 to become stable or switch to the beta version of Voyager;
  • switch to another navigation library, e.g. standard androidx navigation compose which in alpha supports KMP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant