Make the state holder stable

pull/186/head
Manuel Vivo 2 years ago
parent 0eee3620b8
commit 872a7a6523

@ -20,6 +20,7 @@ import androidx.compose.material3.windowsizeclass.WindowHeightSizeClass
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.remember
import androidx.navigation.NavController
import androidx.navigation.NavDestination
@ -50,6 +51,7 @@ fun rememberNiaAppState(
}
}
@Stable
class NiaAppState(
val navController: NavHostController,
val windowSizeClass: WindowSizeClass

Loading…
Cancel
Save