Home / File/ diffAttributePayloads.js — react Source File

diffAttributePayloads.js — react Source File

Architecture documentation for diffAttributePayloads.js, a javascript file in the react codebase. 3 imports, 0 dependents.

File javascript BabelCompiler Validation 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  829c86ab_8869_c64b_48b1_20ee575054de["diffAttributePayloads.js"]
  24686b4c_3c4b_6fa0_b125_37d3286a1ff4["ReactNativeTypes.js"]
  829c86ab_8869_c64b_48b1_20ee575054de --> 24686b4c_3c4b_6fa0_b125_37d3286a1ff4
  f095975f_d060_c110_1c71_056d3e27b5d0["deepDiffer.js"]
  829c86ab_8869_c64b_48b1_20ee575054de --> f095975f_d060_c110_1c71_056d3e27b5d0
  4e10271b_2eaf_7c12_a408_b955425e888c["deepDiffer"]
  829c86ab_8869_c64b_48b1_20ee575054de --> 4e10271b_2eaf_7c12_a408_b955425e888c
  style 829c86ab_8869_c64b_48b1_20ee575054de fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict
 */

import type {AttributeConfiguration} from '../../../../ReactNativeTypes';

import deepDiffer from './deepDiffer';

export default function diff(
  prevProps: Object,
  nextProps: Object,
  validAttributes: AttributeConfiguration,
): null | Object {
  const {children: _prevChildren, ...prevPropsPassed} = prevProps;
  const {children: _nextChildren, ...nextPropsToPass} = nextProps;
  return deepDiffer(prevPropsPassed, nextPropsToPass) ? nextPropsToPass : null;
}

Domain

Subdomains

Functions

Frequently Asked Questions

What does diffAttributePayloads.js do?
diffAttributePayloads.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in diffAttributePayloads.js?
diffAttributePayloads.js defines 1 function(s): diff.
What does diffAttributePayloads.js depend on?
diffAttributePayloads.js imports 3 module(s): ReactNativeTypes.js, deepDiffer, deepDiffer.js.
Where is diffAttributePayloads.js in the architecture?
diffAttributePayloads.js is located at packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/diffAttributePayloads.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free