Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix(AutoControlledComponent): fix behaviour when undefined it passed #3303

Merged
merged 1 commit into from
Nov 25, 2018

Conversation

layershifter
Copy link
Member

This PR backports changes from microsoft/fluent-ui-react#499


We discussed this changes during meetings on the previous week, we need to change the behaviour of AutoControlledComponent to match React's.

An example that shows issue: https://codesandbox.io/s/l20mjn74zz


After this PR we can safely migrate to getDerivedStateFromProps() 👍

@codecov-io
Copy link

Codecov Report

Merging #3303 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3303   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files         169      169           
  Lines        2803     2803           
=======================================
  Hits         2801     2801           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update defd978...3122aee. Read the comment docs.

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.

None yet

2 participants