We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fieldState
7.34.2
https://codesandbox.io/s/usecontroller-forked-hjclgx?file=/src/App.js
1 - Invoke useController and destructure fieldState. 2 - Try to copy fieldState using the spread operator {...fieldState}.
useController
{...fieldState}
This was introduced in #8334 and happens because Object.defineProperties call is not setting properties as enumerable.
enumerable
Being able to "copy" field state using spread operator.
I've dropped a PR just in case.
The text was updated successfully, but these errors were encountered:
fix #8919 make useController fieldState properties enumerable (#8920)
cdf9945
Successfully merging a pull request may close this issue.
Version Number
7.34.2
Codesandbox/Expo snack
https://codesandbox.io/s/usecontroller-forked-hjclgx?file=/src/App.js
Steps to reproduce
1 - Invoke
useController
and destructurefieldState
.2 - Try to copy
fieldState
using the spread operator{...fieldState}
.This was introduced in #8334 and happens because Object.defineProperties call is not setting properties as
enumerable
.Expected behaviour
Being able to "copy" field state using spread operator.
I've dropped a PR just in case.
Code of Conduct
The text was updated successfully, but these errors were encountered: