79286934

Date: 2024-12-17 07:18:59
Score: 1
Natty:
Report link

There are two methods to do it,

  1. change viewmodel{} -> single{} in appModule.

OR

2)add viewModelStoreOwner to koinViewModel()

composable(Route.SCanConfigScreen) {
            SCanConfigScreen(koinViewModel(viewModelStoreOwner = LocalContext.current as ComponentActivity))
        }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: santosh inchalakaranje