This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Commit 37ad35e
committed
array.$loaded should wait for all promises to resolve. Closes #629.
When we added promise support for user-extendable functions in
`$firebaseArray`, the unintended consequense was that the `$loaded`
promise was resolving before updates from the server were populated
to the array. The solution is to accumulate any user returned promises,
and wait until they have all resolved.1 parent feb8436 commit 37ad35e
File tree
3 files changed
+53
-24
lines changed- src
- tests/unit
3 files changed
+53
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
635 | | - | |
636 | | - | |
| 634 | + | |
| 635 | + | |
637 | 636 | | |
638 | 637 | | |
639 | 638 | | |
640 | 639 | | |
641 | 640 | | |
642 | | - | |
643 | | - | |
| 641 | + | |
644 | 642 | | |
645 | 643 | | |
646 | 644 | | |
647 | 645 | | |
648 | 646 | | |
649 | 647 | | |
650 | 648 | | |
651 | | - | |
652 | | - | |
| 649 | + | |
653 | 650 | | |
654 | 651 | | |
655 | 652 | | |
656 | 653 | | |
657 | 654 | | |
658 | 655 | | |
659 | 656 | | |
660 | | - | |
661 | | - | |
662 | | - | |
| 657 | + | |
| 658 | + | |
663 | 659 | | |
664 | 660 | | |
665 | 661 | | |
666 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
667 | 674 | | |
668 | 675 | | |
669 | 676 | | |
| |||
677 | 684 | | |
678 | 685 | | |
679 | 686 | | |
680 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
681 | 692 | | |
682 | 693 | | |
683 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 185 | | |
196 | 186 | | |
197 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
110 | 138 | | |
111 | 139 | | |
112 | 140 | | |
| |||
0 commit comments