theapache64 ๐Ÿšโ›ฐ๏ธ Profile picture
I tweet abt Kotlin & Android ๐Ÿš€ ๐Ÿ—๏ธ Building Stackzy โžก๏ธ https://t.co/mmNO5KfQue ๐Ÿ’ป Creator of Retrosheet โžก๏ธ https://t.co/1s26vwyGp7 He/Him ๐ŸŽ๏ธ ๐Ÿ“ ๐Ÿ๏ธ
Aug 28, 2021 โ€ข 8 tweets โ€ข 3 min read
X: I know what is `remember`, but what is `rememberSaveable`? How are they different? ๐Ÿคท๐Ÿผ

Y: Well, as you know, `remember` is to survive your value during recomposition...

#compose #thread_ahead ๐Ÿงต โฌ‡๏ธ ...`rememberSaveable` is to survive the value during both recomposition and activity recreation

X: Ahm...Okay, how do I use it? ๐Ÿค”
Y: Let's look at the method's signature first.๐Ÿ‘€ Image