Skip to content

Optimize setState dayPickerContainerStyles in responsivizePickerPosition#1735

Merged
ljharb merged 1 commit intoreact-dates:masterfrom
mmarkelov:Optimize_setState_dayPickerContainerStyles_
Jul 27, 2019
Merged

Optimize setState dayPickerContainerStyles in responsivizePickerPosition#1735
ljharb merged 1 commit intoreact-dates:masterfrom
mmarkelov:Optimize_setState_dayPickerContainerStyles_

Conversation

@mmarkelov
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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 lencioni and majapw July 27, 2019 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SingleDatePicker rerendering due to state.dayPickerContainerStyles

4 participants