useState<T> method

  1. @Deprecated("replace with useLiveState")
LiveData<T> useState<T>(
  1. T value, [
  2. bool notify = false
])

创建 ViewModelState notify 创建时是否更新状态

Implementation

@Deprecated("replace with useLiveState")
LiveData<T> useState<T>(T value, [bool notify = false]) {
  return useLiveState(value, notify);
}