-
-
Save KTruong008/8d93b683f3c41938e0b66b1685cf9cd7 to your computer and use it in GitHub Desktop.
form selectors reselect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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