From my understanding from the docs if i access props.values
from inside a ponent 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.
What am I doing wrong here?
From my understanding from the docs if i access props.values
from inside a ponent 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.
What am I doing wrong here?
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Mar 28, 2017 at 17:39 Dimitris KaragiannisDimitris Karagiannis 9,3969 gold badges45 silver badges74 bronze badges1 Answer
Reset to default 5As redux-form documentation, proper way to access form values is by formValueSelector