Home / Function/ UNSAFE_componentWillReceiveProps() — react Function Reference

UNSAFE_componentWillReceiveProps() — react Function Reference

Architecture documentation for the UNSAFE_componentWillReceiveProps() function in ReactCompositeComponentState-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  90cd3718_e6b6_c5bf_8a59_0884974498f6["UNSAFE_componentWillReceiveProps()"]
  1c4bf07b_319d_14c7_f017_c54282d2d9f5["Child"]
  90cd3718_e6b6_c5bf_8a59_0884974498f6 -->|defined in| 1c4bf07b_319d_14c7_f017_c54282d2d9f5
  9091a319_7a88_7361_5d53_4e5da6a4ee34["UNSAFE_componentWillReceiveProps()"]
  9091a319_7a88_7361_5d53_4e5da6a4ee34 -->|calls| 90cd3718_e6b6_c5bf_8a59_0884974498f6
  9091a319_7a88_7361_5d53_4e5da6a4ee34["UNSAFE_componentWillReceiveProps()"]
  90cd3718_e6b6_c5bf_8a59_0884974498f6 -->|calls| 9091a319_7a88_7361_5d53_4e5da6a4ee34
  style 90cd3718_e6b6_c5bf_8a59_0884974498f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom/src/__tests__/ReactCompositeComponentState-test.js lines 369–379

      UNSAFE_componentWillReceiveProps() {
        if (updated) {
          return;
        }
        Scheduler.log('child componentWillReceiveProps ' + this.props.value);
        this.props.parent.setState({value: 'two'});
        Scheduler.log(
          'child componentWillReceiveProps done ' + this.props.value,
        );
        updated = true;
      }

Domain

Subdomains

Frequently Asked Questions

What does UNSAFE_componentWillReceiveProps() do?
UNSAFE_componentWillReceiveProps() is a function in the react codebase, defined in packages/react-dom/src/__tests__/ReactCompositeComponentState-test.js.
Where is UNSAFE_componentWillReceiveProps() defined?
UNSAFE_componentWillReceiveProps() is defined in packages/react-dom/src/__tests__/ReactCompositeComponentState-test.js at line 369.
What does UNSAFE_componentWillReceiveProps() call?
UNSAFE_componentWillReceiveProps() calls 1 function(s): UNSAFE_componentWillReceiveProps.
What calls UNSAFE_componentWillReceiveProps()?
UNSAFE_componentWillReceiveProps() is called by 1 function(s): UNSAFE_componentWillReceiveProps.

Analyze Your Own Codebase

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

Try Supermodel Free