Skip to content

Conversation

jasonkobilka
Copy link
Contributor

Prevents re-rendering of the component if you fire a Redux dispatch that doesn't change the selected range (which would otherwise reset the selected Range), but want to keep the changes you've made. E.g., if you want to stage your changes to allow a user to cancel/accept. Confirms a diff in dates before re-applying state unless the "redraw" prop is specified.

@coveralls
Copy link

Coverage Status

Coverage decreased (-6.2%) to 90.783% when pulling 49966d8 on jasonkobilka:dev into 89211a8 on munichlinux:dev.

this.state = { selectedDateRange, restrictionRange, display };
this.selectedDateRange = selectedDateRange.clone();
}
componentWillReceiveProps(props) {
Copy link
Owner

Choose a reason for hiding this comment

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

@jasonkobilka there are multiple componentWillReceiveProps fn

}
this.setState(this.state);
}
syncData() {
Copy link
Owner

Choose a reason for hiding this comment

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

syncing var happens in the componentwillreceiveprops no need for explicit assignment.

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.

3 participants