Turn off validateNoSetStateInRender in babel-plugin
There's false positives that we found in the Eslint plugin
Sathya Gunasekaran committed
Nov 14, 2023 at 16:59 UTC
0794aacdbf8b3a995cdbb49966c716cf8d6d224f
1 file changed
+1
-1
compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts
+1
-1
@@ -140,7 +140,7 @@ const EnvironmentConfigSchema = z.object({
140
* Validates that setState is not unconditionally called during render, as it can lead to
141
* infinite loops.
142
*/
143
- validateNoSetStateInRender: z.boolean().default(true),
143
+ validateNoSetStateInRender: z.boolean().default(false),
144
145
/**
146
* Extension of validateNoSetStateInRender which also validates that setState is not