dillon1000/react

Commit

Remove unnecessary warning for invalid node

We have an invariant that checks the same case right afterwards.

The warning was originally added in #5884 with a distinct wording.

However it was later changed to the same wording as the invariant in #6008.

I don't see why we would want to have both since they're saying the same thing and with (almost) the same internal stack.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/shared/shared/__tests__/ReactStatelessComponent-test.js ModifiedM src/renderers/shared/stack/reconciler/ReactCompositeComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…