https://kotlinlang.org logo
#compose
Title
# compose
m

Mehdi Haghgoo

09/20/2020, 8:33 AM
There is an example in Kotlin docs:
Copy code
var selectedId by savedInstanceState<String?> { null }
Why isn't remember used here? Is it OK (or recommended) to use remember before
savedInstanceState()
?
a

andev

09/20/2020, 8:41 AM
savedInstanceState { } already does the remember thingy internally
🎉 1
👏 1
😀 1
f

flosch

09/20/2020, 10:16 AM
For compose I would always recommend to just look into the function sources themselves inside your IDE. The source code is very well documented and most of the time fairly easy to understand on the upper levels! 👍
👍 1
☝️ 1
9 Views