Передача значения состояния или состояния в качестве параметра составной функции ⇐ Android
Передача значения состояния или состояния в качестве параметра составной функции
In a Composable function, I can pass as parameter the State, or the value of the State. Any reason for preferring to pass the value of the State, instead of the State?
In both cases, the composable is stateless, so why should I distinguish both cases?
In a Composable function, I can pass as parameter the State, or the value of the State. Any reason for preferring to pass the value of the State, instead of the State?
In both cases, the composable is stateless, so why should I distinguish both cases?
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение