Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to specify the default value type as the object #11816

Closed
zejunking opened this issue Apr 24, 2024 · 0 comments
Closed

How to specify the default value type as the object #11816

zejunking opened this issue Apr 24, 2024 · 0 comments
Labels
feature request request a feature to be added waiting-up-vote Waiting for votes from the community.

Comments

@zejunking
Copy link

version:7.51.3

After I register the form item, if I use setValue('test.12', 'xxx');, the value of test will default to [undefined, undefined, ..., 'xxx']. How can I set it to be an object like { '12': 'xxx' }?

@zejunking zejunking added feature request request a feature to be added waiting-up-vote Waiting for votes from the community. labels Apr 24, 2024
@react-hook-form react-hook-form locked and limited conversation to collaborators May 4, 2024
@bluebill1049 bluebill1049 converted this issue into discussion #11854 May 4, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
feature request request a feature to be added waiting-up-vote Waiting for votes from the community.
Projects
None yet
Development

No branches or pull requests

1 participant