Repository navigation
Commit 4b1180c
committed
fix(compiler): use shared isHookCalleeName in containsHookCall arm gate
Replace local isHookName predicate with shared isHookCalleeName so that
unstable_use* and UNSTABLE_use* calls are correctly recognized as hooks.
Without this, arm-bound content containing prefixed hooks could be
incorrectly lowered, moving slot state onto a scope that is torn down on
branch flips.1 parent 68909d5 commit 4b1180c
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23328 | 23328 | | |
23329 | 23329 | | |
23330 | 23330 | | |
23331 | | - | |
23332 | 23331 | | |
23333 | 23332 | | |
23334 | 23333 | | |
| |||
23345 | 23344 | | |
23346 | 23345 | | |
23347 | 23346 | | |
23348 | | - | |
| 23347 | + | |
23349 | 23348 | | |
23350 | 23349 | | |
23351 | 23350 | | |
23352 | 23351 | | |
23353 | | - | |
| 23352 | + | |
23354 | 23353 | | |
23355 | 23354 | | |
23356 | 23355 | | |
| |||
0 commit comments