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

DevTools doesn't show the whole form context #191

Open
GalPayEm opened this issue Feb 12, 2023 · 1 comment
Open

DevTools doesn't show the whole form context #191

GalPayEm opened this issue Feb 12, 2023 · 1 comment

Comments

@GalPayEm
Copy link

Hey,

I dont know if this is an issue or feature request... Long story short - I have a field which I dynamically create behind the scenes - A SetValue that isn't part of the UI itself. the devtool currently shows only the fields that are on the screen at a particular moment.

Is there a way to also add any values that aren't on the screen but are retrieved through "getValues"?

@BigSamu
Copy link

BigSamu commented Oct 7, 2024

Same question. In my case I am setting some values of the form using setValue. What I have are options that are tighley coupled. For instance

someField = {
    id: string
    value: name
}

In that schema only one id will have only one respective name and viceverse. What I do is just to select in an Autocomplete Box an option that that traduce someField.id, and then set the field of the Autocomplete form using setValues() with field name someField .id as follow:

setValue(someField .name, "name")

It would be great that DevTools can show all values being set. Not only the ones that are actually rendered in the UI.

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

2 participants