Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useFormState 实际上并不能作为 useState 使用 #2638

Open
1 task done
erhulee opened this issue Apr 14, 2024 · 0 comments
Open
1 task done

useFormState 实际上并不能作为 useState 使用 #2638

erhulee opened this issue Apr 14, 2024 · 0 comments

Comments

@erhulee
Copy link

erhulee commented Apr 14, 2024

Basic Info

  • Package Name And Version: @arco-design/web-react@2.61.3
  • Framework version: react18
  • Browser: chrome123.0.0.0

Steps to reproduce

看API名称更像是一个 useState 的表单版本,但是从示例上更像是 useWatchFiled;
从代码执行结果来看,实际上是有暴露 value 字段出来的,官方看下能不能直接开放value作为一种 state 来用呢?
或者收敛这个字段别让我看到 ..

Extra info

{
"errors": [],
"warnings": [],
"validateStatus": "validating",
"isSubmitting": false,
"isTouched": true,
"value": [
1713110839659,
1713114439659
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant