Hi folks, can any one tell me what’s the differenc...
# compose
k
Hi folks, can any one tell me what’s the difference between state and memo wrt to compose?
z
naked value = changes to it are lost on recompose, gets reinitialised the next time memo = survives recomposition state = memo + also triggers recompose when changed
👌 2
👍 2
k
so memo is sort of global variable?
z
no, it's still local to the level where you defined it, and will be released when that composable gets destroyed for good
i
Thanks Zsolt! good to know 👍
k
does changing state inside compose function calls that function?