Repository navigation
Commit 7721f19
committed
fix(website): prevent version echo from dropping loads and guard compiled pane against wrong compiler
Bug 1 — Same-version short-circuit drops loads:
- Move writeVersion after await compileAndRun() so the URL is updated only
once the sandbox has finished running, preventing the URL-sync effect from
re-entering loadVersion and prematurely clearing loading state.
- When compileAndRun reports a sandbox run error, record it as a version
failure (failedVersion + versionError) so Retry and reselecting the same
version fall through the early return and rebuild the iframe.
- Add !failedVersion to the early-return condition so a recorded sandbox
failure is not treated as a successful same-version no-op.
Bug 2 — Release still compiles against main:
- Guard showOutput with a toolchain null check so the Compiled pane cannot
compile through the module-level activeCompiler (MAIN_COMPILER) while a
release toolchain is still loading.1 parent 37cac60 commit 7721f19
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
| |||
970 | 971 | | |
971 | 972 | | |
972 | 973 | | |
| 974 | + | |
973 | 975 | | |
974 | | - | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
975 | 980 | | |
| 981 | + | |
976 | 982 | | |
977 | 983 | | |
978 | 984 | | |
| |||
1241 | 1247 | | |
1242 | 1248 | | |
1243 | 1249 | | |
1244 | | - | |
| 1250 | + | |
1245 | 1251 | | |
1246 | 1252 | | |
1247 | | - | |
1248 | 1253 | | |
1249 | 1254 | | |
1250 | 1255 | | |
| |||
1290 | 1295 | | |
1291 | 1296 | | |
1292 | 1297 | | |
1293 | | - | |
1294 | 1298 | | |
1295 | 1299 | | |
1296 | 1300 | | |
1297 | | - | |
1298 | | - | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
1299 | 1310 | | |
1300 | 1311 | | |
1301 | 1312 | | |
| |||
0 commit comments