Choosing Between remember and derivedStateOf in Jetpack Compose
Use remember with keys for cheap, eagerly computed derivations. Use derivedStateOf when the value depends on State objects and you want calculation deferred until the UI actually reads it—avoiding work during compositions where the derived value isn't needed.