Select all form values in redux-form

mqklin picture mqklin · Feb 18, 2017 · Viewed 13.3k times · Source

I want to get all values from redux-form. I can't use formValueSelector, because I don't know fields names (I create them dynamically). One solution is to use store.getState().form[FORM_NAME].values, but I guess it's a dirty solution, isn't it? If so, is there another way?

Answer

Erik R. picture Erik R. · Feb 19, 2017

There is a getFormValues selector for that.
Or you could just get the values passed to onSubmit during form submission.