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

I am using KMP to develop a desktop application, and the webview is reloaded when the tab is switched #257

Open
GoldTest opened this issue Dec 4, 2024 · 1 comment

Comments

@GoldTest
Copy link

GoldTest commented Dec 4, 2024

How do I make the webview not dispose when I switch tabs?
Kcef have those methods but it seems i cant control in the webview layer.

samples doesn't help

@GoldTest
Copy link
Author

GoldTest commented Dec 4, 2024

fun rememberSaveableWebViewState( url: String, additionalHttpHeaders: Map<String, String> = emptyMap(), ): WebViewState = if (getPlatform().isDesktop()) { rememberWebViewState(url, additionalHttpHeaders) } else { rememberSaveable(saver = WebStateSaver) { WebViewState(WebContent.NavigatorOnly) } }

looks not support yet?

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

1 participant