FormidableLabs / react-fast-compare

fastest deep equal comparison for React
MIT License
1.59k stars 54 forks source link

fix react check to work in prod #26

Closed chen-ye closed 6 years ago

chen-ye commented 6 years ago

Addresses https://github.com/FormidableLabs/react-fast-compare/issues/25 by removing the _store check.

More specificity can be added by depending upon https://github.com/facebook/react/blob/master/packages/shared/ReactSymbols.js and comparing $$typeof as mentioned in https://github.com/facebook/react/blob/master/packages/react/src/ReactElement.js#L92.

chrisbolin commented 6 years ago

Awesome! Thank you so much @chen-ye. let me run a few tests on this