Join Slack
Communities
Powered by
I'm looking for a way to implement a `rememberNotN...
# compose
t
tad
08/06/2021, 6:58 PM
I'm looking for a way to implement a
rememberNotNull
function that doesn't recalculate its value when passed a null key. Can someone point me in the right direction?
tad
08/06/2021, 7:06 PM
rememberNotNull.kt
tad
08/06/2021, 7:06 PM
I'm not sure I should be calling those internal functions, but we'll see if it works
d
Dominaezzz
08/06/2021, 7:14 PM
That looks like state to me tbh. Maybe use mutableStateOf() somehow.
Open in Slack
Previous
Next