componentWillMount method

  1. @override
  2. @mustCallSuper
  3. @Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
void componentWillMount()
inherited

ReactJS lifecycle method that is invoked once immediately before the initial rendering occurs.

DEPRECATED - DO NOT USE

Use componentDidMount instead

Implementation

@override
@mustCallSuper
@Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
void componentWillMount() => throw _unsupportedLifecycleError('componentWillMount');