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

A. Sachdeva

02/27/2021, 1:56 PM
hi, what could be an alternative to notifydatasetchanged onjetpack compose? i have this note like ui with text and a crosss button. on click of cross , i wish to invoke a listener which will remove that item from the list. code in thread
j

jaqxues

02/27/2021, 2:06 PM
Read up on how state works and keep in mind that compose is reactive, you change the data, compose updates everything that uses it automatically
☝️ 2
This is what you probably need
a

A. Sachdeva

02/27/2021, 2:07 PM
ok thanks, let me check this out