dillon1000/react

Commit

Fixed shallowEqual implementation to handle the case when inputs are not objects.

If either argument is not an object and unequal, then shallowEqual should return false.
If only one argument is an object, then shallowEqual should return false.

Fixes #3369
Browse files
Changed paths2 files
First-parent comparison
M src/utils/__tests__/shallowEqual-test.js ModifiedM src/utils/shallowEqual.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…