Join Slack
Powered by
hi, what could be an alternative to notifydatasetc...
# 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
A. Sachdeva
02/27/2021, 1:58 PM
json_kt.kt
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
jaqxues
02/27/2021, 2:06 PM
https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#mutablestatelistof
jaqxues
02/27/2021, 2:06 PM
This is what you probably need
a
A. Sachdeva
02/27/2021, 2:07 PM
ok thanks, let me check this out
7
Views
Open in Slack
Previous
Next