Commit 338e6cd
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 b3f1831 commit 338e6cd
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 | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
| 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