MutableStateFlow not being updated on @Composable
Currently I have a WebAppInterface that detects the events of the web, such WebAppInterface is called inside a @Composable WebView, inside the WebAppInterface I have a function that I have successfully checked that detects the events of the Web and also updates within the class the variable eventNumber
which is a StateFlow<Int>
, but from within the @Composoable when I try to react to the changes of the value from this variable nothing happens. Here my code: