Hi there, I have a trouble when using ComposeView ...
# compose-android
h
Hi there, I have a trouble when using ComposeView in a Fragment. After navigate to another Nav graph and back, ComposeView itself becomes blank on the view, since other XML-based view are able to draw normally. I tried to use
Copy code
binding.composeView.apply {
            setViewCompositionStrategy(
                ViewCompositionStrategy.DisposeOnLifecycleDestroyed(
                    viewLifecycleOwner
                )
            )
            setContent { ... }
but no luck. I have pushed related code to StackOverflow. Please help. Thanks and have a nice day.