One workaround could be by using savedStateHandle
to add a flag and then check this flag when running the LaunchedEffect
, for example:
LaunchedEffect(Unit) {
if (it.savedStateHandle.get<Boolean>("firstTimeFlag") == null) {
//Do your work
}
it.savedStateHandle.["firstTimeFlag"] = true
}