Query module UnsupportedStateUpdateInLifecycleMethod

name
Unsupported state update in lifecycle method
description
Attempting to update the state of a React component at the wrong time can cause undesired behavior.
kind
problem
problem.severity
warning
id
js/react/unsupported-state-update-in-lifecycle-method
tags
reliability frameworks/react
precision
high

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

isStateUpdateMethodCall
isUnconditionalCall

Holds if call is guaranteed to occur in its enclosing function, unless an exception occurs.

Classes

CallOnSelf

A call that invokes a method on its own receiver.

StateUpdateVolatileMethod

A React component method in which state updates may have surprising effects.

UnconditionalCallOnSelf

A call that is definitely invoked by the caller, unless an exception occurs.