We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144dc14 commit b353ebeCopy full SHA for b353ebe
packages/app/src/app/overmind/effects/live/clients.ts
@@ -24,6 +24,7 @@ function operationToElixir(ot) {
24
25
class CodeSandboxOTClient extends Client {
26
moduleShortid: string;
27
+ revision: number;
28
onSendOperation: (revision: string, operation: any) => Promise<unknown>;
29
onApplyOperation: (operation: any) => void;
30
@@ -52,7 +53,13 @@ class CodeSandboxOTClient extends Client {
52
53
}
54
55
serverAck() {
- super.serverAck();
56
+ try {
57
+ super.serverAck();
58
+ } catch (e) {
59
+ // Undo the revision increment again
60
+ this.revision--;
61
+ throw e;
62
+ }
63
64
65
applyClient(operation: any) {
0 commit comments