Discover and read the best of Twitter Threads about #thread_ahead

Most recents (1)

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
X: What is that `inputs`? and Why is it `vararg`?๐Ÿคท๐Ÿผ

Y: `inputs` are something that we give to `rememberSaveable` to tell something like, "Hey, if any of the inputs are changed during recomposition, ...
Read 8 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!