refactor home page: don't use update function for window size

This commit is contained in:
AmirHossein Abdolmotallebi 2024-09-12 08:47:26 +03:30
parent c24f272290
commit 372ee77f30

View File

@ -271,7 +271,7 @@ class HomeComponent(
)
val windowSize = _windowSize.asStateFlow()
fun setWindowSize(dpSize: DpSize) {
_windowSize.update { dpSize }
_windowSize.value = dpSize
}
private val _categoriesWidth = homePageStateToPersist.mapTwoWayStateFlow(