dillon1000/react
Commit
Browse files 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
Changed paths2 files
First-parent comparisonsrc/utils/__tests__/shallowEqual-test.js ModifiedM src/utils/shallowEqual.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…