devtools icon indicating copy to clipboard operation
devtools copied to clipboard

DevTools doesn't show the whole form context

Open GalPayEm opened this issue 2 years ago • 2 comments

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"?

GalPayEm avatar Feb 12 '23 16:02 GalPayEm

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.

BigSamu avatar Oct 07 '24 17:10 BigSamu

This thread is 2 years old so I don't expect much, but this really bothers me as well.

It's pretty common practice to use some form values as options and the devtool pretty much loses any usefulness when it doesn't display these values

xskipy avatar Jun 16 '25 12:06 xskipy