These are chat archives for erikras/redux-form

Jul 2016
David Marr
Jul 22 2016 17:56
Using v6 and the formValueSelector, I notice the component is initialized without the value I define in the mapStateToProps using the selector. Is there a way around that
Ie, my mapStateToProps:
const mapStateToProps = state => {
  return {
    emailMarketingOptIn: selector(state, 'emailMarketingOptIn'),
    newsletterSubscriptions: selector(state, 'newsletterSubscriptions')
in the render of that form, emailMarketingOptIn is undefined before it uses the value that i pass into initialValues
maybe i'd use the initialized propert on the form and return null if its not initialized.. but then i wouldn't be able to make the prop isRequired