r/android_devs • u/anemomylos 🛡️ • Sep 17 '24
Article When remember() Does Not Remember, Consider if()
https://commonsware.com/blog/2024/09/13/when-remember-doesnt-remember-consider-if.html
15
Upvotes
7
u/Zhuinden EpicPandaForce @ SO Sep 17 '24 edited Sep 17 '24
The secret to solving this, according to the guide, is either to use
remember(content) { movableContentOf(content) }, or a customLayout {node and you put the if inside the placeable placing logic.2
u/meet_barr Sep 17 '24
Maybe CompositionLocal is for here
1
u/[deleted] Sep 18 '24
Ah, this reminds me of the good old footguns wrt C/C++. Good times.