Open SamCosta1 opened 3 weeks ago
Under certain conditions the WebViewNavigator does not work at all. Calling the methods on the navigator has no effect.
WebViewNavigator
Reproduction sample (Only reproduced on Desktop)
@Composable internal fun BasicWebViewSample() { val initialUrl = "https://github.com/KevinnZou/compose-webview-multiplatform" val state = rememberWebViewState(url = initialUrl) val navigator = rememberWebViewNavigator() Column { IconButton(onClick = { navigator.navigateBack() }) { Icon( imageVector = Icons.Default.ArrowBack, contentDescription = "Back", ) } WebView( state = state, modifier = Modifier .fillMaxSize(), navigator = navigator, ) } }
Note: In the sample in the repo this works fine, this seems to have something to do with the fact the sample has a navigator passed in as a param.
navigator
It seems a change to the value on this line does not trigger a recomposition correctly.
@KevinnZou Can this be merged?
Under certain conditions the
WebViewNavigator
does not work at all. Calling the methods on the navigator has no effect.Reproduction sample (Only reproduced on Desktop)
Note: In the sample in the repo this works fine, this seems to have something to do with the fact the sample has a
navigator
passed in as a param.It seems a change to the value on this line does not trigger a recomposition correctly.