Skip to content

Commit

Permalink
fix crash as ToastHostState is not sabeable [refs #338]
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Feb 10, 2023
1 parent b3263b7 commit f46fa85
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
Expand All @@ -29,7 +30,7 @@ import kotlinx.coroutines.launch

@Composable
internal fun TagScreen(onNavigateUp: () -> Unit) {
val toastHostState = rememberSaveable { ToastHostState() }
val toastHostState = remember { ToastHostState() }
Scaffold(
topBar = {
TopAppBar(
Expand Down

0 comments on commit f46fa85

Please sign in to comment.