Hi :wave:, is anyone having problems of composable...
# compose
k
Hi 👋, is anyone having problems of composables losing internal state when navigated back to from another composable? It didn't happen with the previous beta.
If somebody faces the same issue, pass a key to save the state by and it'll work again
Copy code
val (state, updateState) = rememberSaveable{ mutableStateOf("") }
Becomes
Copy code
val (state, updateState) = rememberSaveable(key="unique_save_key"){ mutableStateOf("") }
🔥 1
a
most likely you faced this issue: https://issuetracker.google.com/issues/188567661. will be fixed in the next beta
🙏 1
1