Closed chen-ye closed 6 years ago
(Apologies for formatting, on mobile)
Thank you for reporting this! We'll check it!!!
Here's a reproduction Works fine in dev environments: https://codesandbox.io/s/nk6rzr7z64 But fails to omit _owner in prod: https://csb-nk6rzr7z64-cfyxlokhrg.now.sh/
fixed with react-fast-compare@2.0.1
🙇 @chen-ye
react_fast_compare
checks for the existence of_store
in order to verify the compared object is a React element, and avoid react-specific circular references.However, this property is not created in production environments (as can be seen at https://github.com/facebook/react/blob/master/packages/react/src/ReactElement.js#L126).
As a result, react_fast_compare doesn't omit circular references in production.