Skip to content

Instantly share code, notes, and snippets.

@vladyn
Created October 2, 2019 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladyn/39f5b6214698e978c2c50aab7bf23943 to your computer and use it in GitHub Desktop.
Save vladyn/39f5b6214698e978c2c50aab7bf23943 to your computer and use it in GitHub Desktop.
mapStateToProps
const mapStateToProps = (state => {
const selector = formValueSelector('myForm');
return {
time: selector(state, 'select-name'), // undefined
l10n: l10nService,
formValues: getFormValues('myForm')(state), // undefined
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment