Skip to content

Instantly share code, notes, and snippets.

@KTruong008
Created November 14, 2017 21:38
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 KTruong008/8d93b683f3c41938e0b66b1685cf9cd7 to your computer and use it in GitHub Desktop.
Save KTruong008/8d93b683f3c41938e0b66b1685cf9cd7 to your computer and use it in GitHub Desktop.
form selectors reselect
import { createStructuredSelector, createSelector } from 'reselect';
import { getFormValues } from 'redux-form';
import { FORM_NAMES } from '../../core/types';
export const selectBusinessNameRegistrationFormValues = createSelector(
getFormValues(FORM_NAMES.BUSINESS_NAME_REGISTRATION),
formValues => formValues
);
export const businessNameRegistrationFormConnector = createStructuredSelector({
businessNameRegistrationFormValues: selectBusinessNameRegistrationFormValues,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment