Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 633
Dimitris Karagiannis Avatar asked May 18 '26 14:05

Dimitris Karagiannis


1 Answers

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

like image 198
Fazal Rasel Avatar answered May 21 '26 04:05

Fazal Rasel