Commit 5583bc9
committed
bug #278 [LiveComponent] Avoid polling over renders (weaverryan)
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
[LiveComponent] Avoid polling over renders
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| Tickets | #102 Bug D
| License | MIT
The situation:
A) User clicks a button that triggers an Ajax request
B) While that is processing, polling initiates a new request
C) Original Ajax request from (A) finishes... but since a newer request has already been initiated (from B), its result is never rendered (only the "latest" Ajax request's response is rendered if multiple happen on top of each other).
This fixes that situation by skipping a polling request if there is already a request active.
Commits
-------
6076c02 [LiveComponent] Avoid polling over rendersFile tree
2 files changed
+28
-11
lines changed- src/LiveComponent/assets
- dist
- src
2 files changed
+28
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
1110 | | - | |
| 1110 | + | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
| 1124 | + | |
1124 | 1125 | | |
1125 | 1126 | | |
1126 | 1127 | | |
1127 | | - | |
| 1128 | + | |
1128 | 1129 | | |
1129 | 1130 | | |
1130 | 1131 | | |
1131 | 1132 | | |
1132 | | - | |
| 1133 | + | |
1133 | 1134 | | |
1134 | | - | |
| 1135 | + | |
1135 | 1136 | | |
1136 | 1137 | | |
1137 | 1138 | | |
| |||
1427 | 1428 | | |
1428 | 1429 | | |
1429 | 1430 | | |
1430 | | - | |
| 1431 | + | |
1431 | 1432 | | |
1432 | 1433 | | |
1433 | 1434 | | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
1434 | 1438 | | |
1435 | 1439 | | |
1436 | 1440 | | |
| |||
1539 | 1543 | | |
1540 | 1544 | | |
1541 | 1545 | | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
1542 | 1549 | | |
1543 | 1550 | | |
1544 | 1551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
214 | | - | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
312 | | - | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| |||
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
662 | | - | |
| 663 | + | |
663 | 664 | | |
664 | 665 | | |
665 | 666 | | |
666 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
667 | 673 | | |
668 | 674 | | |
669 | 675 | | |
| |||
820 | 826 | | |
821 | 827 | | |
822 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
823 | 833 | | |
824 | 834 | | |
825 | 835 | | |
| |||
0 commit comments