Commit 6794cf5
authored
Throttle live (codesandbox#3722)
* throttle live based on connections
* ops, forgot to change back
* modified
* refactor throttling
* another iteration
* presence and blocking instead, not working though
* fix presence
* fix typo
* open up when saving
* fix bug
* ensure revision when ack
* add as experiment
* reset files with operation error
* properly propagate errors
* do not force experiment :D
* final thing
* rename stuff
* comments
* use 2s throttling
* do not wait to be synchronized
* wait for operation flush also on save clicked
* fix comments from ives
* even smoother1 parent 6690fe4 commit 6794cf5
File tree
3 files changed
+38
-11
lines changed- packages/app/src/app/overmind
- effects/live
- namespaces/editor
3 files changed
+38
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
93 | | - | |
| 105 | + | |
94 | 106 | | |
95 | 107 | | |
96 | 108 | | |
97 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
98 | 118 | | |
99 | 119 | | |
100 | 120 | | |
| |||
168 | 188 | | |
169 | 189 | | |
170 | 190 | | |
171 | | - | |
| 191 | + | |
172 | 192 | | |
173 | 193 | | |
174 | 194 | | |
| |||
224 | 244 | | |
225 | 245 | | |
226 | 246 | | |
227 | | - | |
| 247 | + | |
228 | 248 | | |
229 | | - | |
| 249 | + | |
230 | 250 | | |
231 | 251 | | |
232 | 252 | | |
| |||
315 | 335 | | |
316 | 336 | | |
317 | 337 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 338 | + | |
322 | 339 | | |
323 | | - | |
324 | 340 | | |
| 341 | + | |
325 | 342 | | |
326 | 343 | | |
327 | 344 | | |
| |||
485 | 502 | | |
486 | 503 | | |
487 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
488 | 511 | | |
489 | 512 | | |
490 | 513 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
0 commit comments