Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Optimize setState dayPickerContainerStyles in responsivizePickerPosition #1735

Merged
merged 1 commit into from
Jul 27, 2019
Merged

Optimize setState dayPickerContainerStyles in responsivizePickerPosition #1735

merged 1 commit into from
Jul 27, 2019

Conversation

mmarkelov
Copy link
Contributor

May be fix #1699
Main idea to not setState dayPickerContainerStyles, if it is already empty.
This will prevent unnecessary renders on resizing window for example

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 84.871% when pulling fd1595d on mmarkelov:Optimize_setState_dayPickerContainerStyles_ into 8e81a8b on airbnb:master.

@ljharb ljharb changed the title Optimise setState dayPickerContainerStyles in responsivizePickerPosition Optimize setState dayPickerContainerStyles in responsivizePickerPosition Jul 27, 2019
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Seems reasonable

@ljharb ljharb requested review from majapw and lencioni July 27, 2019 21:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SingleDatePicker rerendering due to state.dayPickerContainerStyles
4 participants