You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe #5744 introduced a behavioral difference between development and production versions of React. We released it as a part of 15.0, and this difference still exists.
The production behavior hasn’t changed. However the development behavior diverged after this change.
React.cloneElement() is not affected because it doesn’t include those warnings.
This doesn’t seem like a major problem (nobody noticed it!) in the real world, but I think we should fix this.
I have a related fix in the works so I’ll add some more tests and include it.
The text was updated successfully, but these errors were encountered:
I believe #5744 introduced a behavioral difference between development and production versions of React. We released it as a part of 15.0, and this difference still exists.
The production behavior hasn’t changed. However the development behavior diverged after this change.
What do you expect to appear?
0.14.x
object null
object null
15.x
string undefined
object null
The 15.x dev behavior is different because dev code path only checks the existence of a property but not whether it’s undefined whereas the prod code path checks for undefined explicitly.
React.cloneElement()
is not affected because it doesn’t include those warnings.This doesn’t seem like a major problem (nobody noticed it!) in the real world, but I think we should fix this.
I have a related fix in the works so I’ll add some more tests and include it.
The text was updated successfully, but these errors were encountered: