Open ticketapp opened 4 years ago
I'm trying to add an initial value as I'm doing it with a standard redux-form, but nothing happens. It is not documented, how can I achieve this? Here is the snippet of code:
function mapStateToProps(state) { const firstName = state.auth.firstName; const initialValues = { firstName }; return { initialValues }; } export default connect(mapStateToProps)( reduxForm({ form: "Form" })(Form) );
I'm trying to add an initial value as I'm doing it with a standard redux-form, but nothing happens. It is not documented, how can I achieve this? Here is the snippet of code: