no_will_update_set_state

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoWillUpdateSetStateRule rule.Rule = reactutil.MakeNoMethodSetStateRule(reactutil.NoMethodSetStateConfig{
	RuleName:          "react/no-will-update-set-state",
	MethodName:        "componentWillUpdate",
	ShouldCheckUnsafe: reactutil.CheckUnsafeAtReactVersion(16, 3, 0),
})

NoWillUpdateSetStateRule is a thin wrapper around upstream's `makeNoMethodSetStateRule('componentWillUpdate', testReactVersion(>= 16.3.0))` factory.

`componentWillUpdate` is NOT in upstream's `methodNoopsAsOf` map, so the rule stays active regardless of React version. The version check is used only to decide whether to also match the `UNSAFE_componentWillUpdate` alias introduced in React 16.3.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL