Jason Ankers
02/09/2021, 12:22 PMTimo Drick
02/09/2021, 12:25 PMJason Ankers
02/09/2021, 12:28 PMJason Ankers
02/09/2021, 12:28 PMTimo Drick
02/09/2021, 12:34 PMclass DataClass(val data: Float) {
var data by mutableStateOf(data)
}
You create on instance of this class and change it when you get new data. Compose will detect this changes.Timo Drick
02/09/2021, 12:37 PMDisposableEffect
So it depends what fits best four you problem.Rafs
02/09/2021, 12:51 PMjim
02/09/2021, 12:52 PMjim
02/09/2021, 12:53 PMJason Ankers
02/09/2021, 12:57 PMShabinder Singh
02/09/2021, 1:00 PMjim
02/09/2021, 1:07 PMDenis
02/09/2021, 1:10 PMCompose does a better job than React in most of the situations you mentionedHow do you compare them? Do you have any benchmarks?
jim
02/09/2021, 1:16 PMDenis
02/09/2021, 1:19 PMI was previously one of about 5 engineers on the React.js core engineering teamOh! Thanks for the answer, Jim.
additional classes of optimizationsThat's very interesting topic. Is there a public list of them somewhere we can read?
Shabinder Singh
02/09/2021, 1:23 PMjim
02/09/2021, 1:44 PMDenis
02/09/2021, 1:59 PMComposableFunctionBodyTransformer.kt
is the place where most of optimizations happen, am I right?jim
02/09/2021, 2:05 PM