79336261

Date: 2025-01-07 14:04:45
Score: 0.5
Natty:
Report link

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
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hugo Landim