Skip to content

Comments

avoid mutating state#129

Open
dougcoburn wants to merge 1 commit intoCero-Studio:masterfrom
dougcoburn:patch-1
Open

avoid mutating state#129
dougcoburn wants to merge 1 commit intoCero-Studio:masterfrom
dougcoburn:patch-1

Conversation

@dougcoburn
Copy link

The value given to the props.onDateSelected callback should not be mutated by the library afterwards. This can break shouldComponentUpdate logic.

The value given to the props.onDateSelected callback should not be mutated by the library afterwards.  This can break shouldComponentUpdate logic.
@dougcoburn
Copy link
Author

Before this change, can cause clients to exhibit behavior very similar to:
#29

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.

1 participant