remember giữ state qua các lần recomposition trong scope của composable nhưng mất khi configuration change như xoay màn hình. rememberSaveable persist state qua configuration change bằng cách tự động lưu vào Bundle.
Dùng rememberSaveable cho dữ liệu người dùng nhập (form fields) và remember cho state UI tạm thời (animation values). rememberSaveable có overhead cao hơn một chút.
remember keeps state across recompositions but loses it on configuration changes like screen rotation. rememberSaveable persists state across configuration changes by automatically saving it to a Bundle.
Use rememberSaveable for important user input (form fields) and remember for temporary UI state (animation values). rememberSaveable has slightly more overhead.