mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Turn off validateNoSetStateInRender in babel-plugin
There's false positives that we found in the Eslint plugin
This commit is contained in:
@@ -140,7 +140,7 @@ const EnvironmentConfigSchema = z.object({
|
||||
* Validates that setState is not unconditionally called during render, as it can lead to
|
||||
* infinite loops.
|
||||
*/
|
||||
validateNoSetStateInRender: z.boolean().default(true),
|
||||
validateNoSetStateInRender: z.boolean().default(false),
|
||||
|
||||
/**
|
||||
* Extension of validateNoSetStateInRender which also validates that setState is not
|
||||
|
||||
Reference in New Issue
Block a user