useForm getValues vs refineCore query
I have an Edit form that I set up like
When reviewing the value of both query.data and getValues...I would expect the payloads to be the same. As in, the getValues from the Form have all the same fields.
But they dont-
This is the value of
And this is the value of
Notice the
So-
Do I need to define all the fields I want to be available somewhere?
The UI is dynamic, needing the value of
Im trying not to do propDrilling with the value of query.data down to the subcomponents...and figured using
But since the fields I need are not there-
Not sure the best path to get the data I need in the
When reviewing the value of both query.data and getValues...I would expect the payloads to be the same. As in, the getValues from the Form have all the same fields.
But they dont-
This is the value of
query.dataAnd this is the value of
getValues()Notice the
panelOptions are not copied over.So-
Do I need to define all the fields I want to be available somewhere?
The UI is dynamic, needing the value of
panelOptions to be defined before it does some conditional logic.Im trying not to do propDrilling with the value of query.data down to the subcomponents...and figured using
useFormContext would be able to query the data.But since the fields I need are not there-
Not sure the best path to get the data I need in the
getValues() object