Home / Class/ LegacyContextProvider Class — react Architecture

LegacyContextProvider Class — react Architecture

Architecture documentation for the LegacyContextProvider class in Contexts.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  f20e0879_100b_4377_8824_f02f08a16138["LegacyContextProvider"]
  94f0305b_87cd_72d5_489c_d2ce0ce0ccea["Contexts.js"]
  f20e0879_100b_4377_8824_f02f08a16138 -->|defined in| 94f0305b_87cd_72d5_489c_d2ce0ce0ccea

Relationship Graph

Source Code

packages/react-devtools-shell/src/app/InspectableElements/Contexts.js lines 38–73

class LegacyContextProvider extends Component<any> {
  static childContextTypes: {
    array: any,
    bool: any,
    func: any,
    null: any,
    number: any,
    object: any,
    string: any,
    symbol: any,
    undefined: any,
  } = {
    array: PropTypes.array,
    bool: PropTypes.bool,
    func: PropTypes.func,
    number: PropTypes.number,
    object: PropTypes.object,
    string: PropTypes.string,
    symbol: PropTypes.symbol,
    null: PropTypes.any,
    undefined: PropTypes.any,
  };

  getChildContext(): {
    array: Array<string>,
    bool: boolean,
    func: () => void,
    null: null,
    number: number,
    object: {outer: {inner: {...}}},
    string: string,
    symbol: symbol,
    undefined: void,
  } {
    return contextData;
  }

Domain

Frequently Asked Questions

What is the LegacyContextProvider class?
LegacyContextProvider is a class in the react codebase, defined in packages/react-devtools-shell/src/app/InspectableElements/Contexts.js.
Where is LegacyContextProvider defined?
LegacyContextProvider is defined in packages/react-devtools-shell/src/app/InspectableElements/Contexts.js at line 38.

Analyze Your Own Codebase

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

Try Supermodel Free