shouldComponentUpdateWithContext method

  1. @Deprecated('This legacy, unstable context API is only supported in the deprecated Component, and not Component2.' ' Instead, use Component2.context, Context.Consumer, or useContext.')
bool? shouldComponentUpdateWithContext(
  1. Map nextProps,
  2. Map nextState,
  3. Map? nextContext
)
inherited

DEPRECATED - DO NOT USE

This API was never stable in any version of ReactJS, and was replaced with a new, incompatible context API in ReactJS 16.

This will be completely removed alongside the Component class.

Implementation

@Deprecated('This legacy, unstable context API is only supported in the deprecated Component, and not Component2.'
    ' Instead, use Component2.context, Context.Consumer, or useContext.')
// ignore: avoid_returning_null
bool? shouldComponentUpdateWithContext(Map nextProps, Map nextState, Map? nextContext) => null;