diff --git a/packages/react-native-renderer/src/ReactNativeAttributePayload.js b/packages/react-native-renderer/src/ReactNativeAttributePayload.js index edb6668231a2a..5804d83b5dc59 100644 --- a/packages/react-native-renderer/src/ReactNativeAttributePayload.js +++ b/packages/react-native-renderer/src/ReactNativeAttributePayload.js @@ -32,13 +32,17 @@ type NestedNode = Array | Object; let removedKeys = null; let removedKeyCount = 0; +const deepDifferOptions = { + unsafelyIgnoreFunctions: true, +}; + function defaultDiffer(prevProp: mixed, nextProp: mixed): boolean { if (typeof nextProp !== 'object' || nextProp === null) { // Scalars have already been checked for equality return true; } else { // For objects and arrays, the default diffing algorithm is a deep compare - return deepDiffer(prevProp, nextProp, {unsafelyIgnoreFunctions: true}); + return deepDiffer(prevProp, nextProp, deepDifferOptions); } }