Skip to content

Finish HT1#1

Open
Lozovskiy wants to merge 2 commits intomasterfrom
HT1
Open

Finish HT1#1
Lozovskiy wants to merge 2 commits intomasterfrom
HT1

Conversation

@Lozovskiy
Copy link
Owner

No description provided.

componentWillReceiveProps(nextProps) {

if(nextProps.submitSucceeded) {
this.props.reset()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы чистил форму где-то в redux, в будущем это должно происходить после успешного добавления на сервер


export function addPerson(personData) {

return (dispatch) => Promise.resolve().then(dispatch({type: ADD_PERSON_SUCCESS, payload: personData}))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это на какой-то костыль похоже

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments