mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Turn off validateNoSetStateInRender in babel-plugin
There's false positives that we found in the Eslint plugin
This commit is contained in:
1 parent
1641f94a86
commit
0794aacdbf
1 file changed
+1
-1
@@ -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