no_did_mount_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 NoDidMountSetStateRule rule.Rule = reactutil.MakeNoMethodSetStateRule(reactutil.NoMethodSetStateConfig{
	RuleName:     "react/no-did-mount-set-state",
	MethodName:   "componentDidMount",
	ShouldBeNoop: reactutil.MethodNoopAtReactVersion(16, 3, 0),
})

NoDidMountSetStateRule is a thin wrapper around upstream's `makeNoMethodSetStateRule('componentDidMount')` factory.

`componentDidMount` is in upstream's `methodNoopsAsOf` map (>= 16.3.0), so the rule becomes a no-op when the user explicitly pins React in [16.3.0, 999.999.999). No `UNSAFE_` alias is checked — upstream calls the factory without a `shouldCheckUnsafeCb`.

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