Commit 35ec09b
committed
[compiler] Remove useState argument constraint. no-derived-computations-in-effects
Summary:
I missed this conditional messing things up for undefined useState() calls. We should be tracking them.
I also missed a test that expect an error was not throwing.
Test Plan:
Update broken test1 parent 8fb9d46 commit 35ec09b
File tree
2 files changed
+2
-1
lines changed- compiler/packages/babel-plugin-react-compiler/src
- Validation
- __tests__/fixtures/compiler/effect-derived-computations
2 files changed
+2
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
0 commit comments