Commit 9d0d94c
fix(app-core): defer android auto-pick effect + restore TS6 ignoreDeprecations
The Android runtime auto-pick useEffect in RuntimeGate was placed before
showLocalOption and finishAsLocal were declared, tripping TS2448/TS2454
("variable used before declaration"). Move the effect to after the
relevant useCallback/useState declarations and replace the eslint-disable
with a proper dependency array.
Also bump app-core/tsconfig.json + ui/tsconfig.json ignoreDeprecations
back to "6.0" — a recent WIP commit regressed it to "5.0", which fails
typecheck under TS 6.x with TS5101 on the still-required baseUrl option.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 39be1ec commit 9d0d94c
3 files changed
Lines changed: 17 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | 266 | | |
284 | 267 | | |
| 268 | + | |
285 | 269 | | |
286 | 270 | | |
287 | 271 | | |
| |||
400 | 384 | | |
401 | 385 | | |
402 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
403 | 401 | | |
404 | 402 | | |
405 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments