Compose Recomposition Fires Without Parameter Change in remember Block
0 reputation · 08 Apr 2026, 15:56 UTC
In Jetpack Compose, a remember block can trigger recomposition even when the values it captures have not changed, because the block’s invalidation logic does not correlate directly with observable parameter updates.
As documented for Compose 1.6, this behavior persists, meaning UI trees may be rebuilt without explicit parameter changes, potentially impacting performance in large collections.
What concrete steps can developers take to ensure recomposition occurs only when relevant state actually changes? Are there recommended patterns or API adjustments to mitigate the performance impact? Does the framework provide any guidance on stabilizing UI updates in the presence of unchanged remember values?