Search code examples
javascriptreactjsreact-routerredux-form

Redux-form access form's values from inside the form's instance


From my understanding from the docs if i access props.values from inside a component instance, I should get an object describing the values in each field of the form.

values : Object

The current values of all the fields in the form.

In my case, I need to access a value, in order to redirect to something like

signup?email=theemailvalue

upon form submission.

However when I access the props.value I get an empty object.

enter image description here

What am I doing wrong here?


Solution

  • As redux-form documentation, proper way to access form values is by formValueSelector