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

[WebView] Doesn't save state when recycled in a LazyColumn #1734

Closed
nickboris opened this issue Dec 6, 2023 · 2 comments
Closed

[WebView] Doesn't save state when recycled in a LazyColumn #1734

nickboris opened this issue Dec 6, 2023 · 2 comments

Comments

@nickboris
Copy link

Describe the bug

Webviews in compose do not seem to save state when they are in a LazyColumn. This results in poor UX, because every time a user scrolls away and back to the webview item, it has to completely reload. This disruptive behavior was called out in this post: #1557 that seemed to have fixed the issue for a similar issue (screen orientation change). It seems to have gone unnoticed.

Wanted to create a formal report for this issue so that it gets on your radar.

Expected behavior

WebView state is cached when it is recomposed within the context of a LazyList. The webview should not be completely reloaded when the user scrolls away from the item (recycled) and back (re-enters composition)

@bentrengrove
Copy link
Collaborator

Unfortunately accompanist WebView has been deprecated and we won't be making any additional updates to it. Thanks for the report but I will have to close this issue.

@Killer232323
Copy link

Why did webview stop continuing to edit, it's not finished, because after switching between tabs it is recreated, in fact all that was done was saving the scroll, and since there was an error and the strange behavior remained, in swiftui webview works stably anyway, I don't understand why they stopped breaking up accompanist WebView

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

No branches or pull requests

3 participants