I have a react-final-form Form. The component exposes the values field. This field contains all the fields changed inside the form. The issue is, I want to access the values from outside of it.
<Form onSubmit={onSubmit} render={({handleSubmit,values}) =>
...
{JSON.stringify(values)} <- this works
</Form>
<div>
{JSON.stringify(values)} <- this is outside, it doesn't work
</div>
I'd like to avoid shoving everything inside the form just to be able to access the values. Is there any way to access it outside or some way to at least pass a values/setValues from the outside to make the values visible outside the Form?