Commit d50b766
fix: improve effect sequencing and execution order (#10949)
* WIP
* WIP
* address bad merge conflict
* add test
* fix issues
* remove debugger
* increase count
* increase count
* something different
* change
* change
* try it
* better comment
* remove deadcode
* move to continue
* fix tests
* add optimization
* unksip test
* Update packages/svelte/src/internal/client/dom/elements/bindings/this.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dom/elements/bindings/this.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* Update packages/svelte/src/internal/client/dom/elements/bindings/this.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
* remove import
* add changeset
* tweaks
* code golf
* remove pre effects
* more effect ordering stuff (#10958)
* WIP
* i guess this change makes sense?
* simplify
* delete unused code
* delete pre_effect
* note to self
* tidy up
* typos
* style tweaks
* style tweaks
* improve reactive statement handling
* no return needed
* let prettier put everything on a single line
* style tweaks
* var
* failing test
* fix test
* fix ordering
* simplify
* ondestroy
* working
* note breaking change
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>1 parent 2079e67 commit d50b766
File tree
25 files changed
+401
-309
lines changed- .changeset
- packages/svelte
- src
- compiler/phases
- 2-analyze
- 3-transform/client/visitors
- internal
- client
- dom/elements/bindings
- reactivity
- server
- main
- reactivity
- tests
- runtime-legacy/samples
- ondestroy-deep
- reactive-assignment-prevent-loop
- reactive-import-statement
- reactive-statement-store
- runtime-runes/samples/effect-order-2
- signals
25 files changed
+401
-309
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
616 | 618 | | |
617 | 619 | | |
618 | 620 | | |
619 | 621 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
625 | 643 | | |
626 | 644 | | |
627 | 645 | | |
| |||
630 | 648 | | |
631 | 649 | | |
632 | 650 | | |
633 | | - | |
634 | | - | |
| 651 | + | |
| 652 | + | |
635 | 653 | | |
636 | 654 | | |
637 | 655 | | |
| |||
660 | 678 | | |
661 | 679 | | |
662 | 680 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
670 | 684 | | |
671 | | - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
672 | 704 | | |
673 | 705 | | |
674 | 706 | | |
| |||
1343 | 1375 | | |
1344 | 1376 | | |
1345 | 1377 | | |
1346 | | - | |
1347 | | - | |
| 1378 | + | |
| 1379 | + | |
1348 | 1380 | | |
1349 | | - | |
1350 | | - | |
| 1381 | + | |
| 1382 | + | |
1351 | 1383 | | |
1352 | 1384 | | |
1353 | 1385 | | |
1354 | 1386 | | |
1355 | 1387 | | |
1356 | 1388 | | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1361 | 1393 | | |
1362 | 1394 | | |
1363 | 1395 | | |
| |||
1381 | 1413 | | |
1382 | 1414 | | |
1383 | 1415 | | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1387 | 1420 | | |
1388 | 1421 | | |
1389 | | - | |
| 1422 | + | |
| 1423 | + | |
1390 | 1424 | | |
1391 | 1425 | | |
| 1426 | + | |
1392 | 1427 | | |
1393 | 1428 | | |
1394 | 1429 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
0 commit comments