informative icon indicating copy to clipboard operation
informative copied to clipboard

Get Form State

Open Ellisande opened this issue 7 years ago • 2 comments

It doesn't look like its being used in the Fields yet, but I'm guessing there is a plan to =) What is the goal of the children having access to the broader form state?

Ellisande avatar Mar 14 '17 05:03 Ellisande

Unless I'm misunderstanding you, I think we have that. In the FieldWrap example, when we provide a callback as a child we get three things: props to spread over the actual input (which I've called input in my examples to be consistent with redux-form), then fieldState and formState

But if this is what you're looking for, I agree -- having form state is immensely powerful at the field level.

bradwestfall avatar Mar 14 '17 14:03 bradwestfall

Also I forgot to mention, if you use the API the way where you just pass your own Input into field like this <Field component={Input} ... > then you'll also have access to form state

bradwestfall avatar Mar 14 '17 14:03 bradwestfall