Skip to content

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

Merged
layershifter merged 1 commit intomasterfrom
fix/acc-will
Nov 25, 2018
Merged

fix(AutoControlledComponent): fix behaviour when undefined it passed#3303
layershifter merged 1 commit intomasterfrom
fix/acc-will

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.

2 participants