useWatch

fun <T> Form.useWatch(fieldName: String, formInstance: FormInstance): State<T?>

使用这个 Hook 你可以在 FormScope 外直接获取一个字段的内容状态

Using this Hook you can directly obtain the content State of a field outside FormScope

Return

Parameters

fieldName

the form field to be tracked

formInstance

form controller instance

T