@instantdb/core
Advanced tools
Comparing version 0.10.30 to 0.10.31
@@ -604,3 +604,2 @@ // @ts-check | ||
} | ||
this._forceSend(eventId, mutation); | ||
const timeoutMs = Math.max(5000, this.pendingMutations.currentValue.size * 5000); | ||
@@ -611,2 +610,3 @@ if (!this._isOnline) { | ||
else { | ||
this._forceSend(eventId, mutation); | ||
// (XXX): If a transaction is pending for over 3 seconds, | ||
@@ -613,0 +613,0 @@ // we want to unblock the UX, so mark it as enqueued |
@@ -632,3 +632,2 @@ "use strict"; | ||
} | ||
this._forceSend(eventId, mutation); | ||
const timeoutMs = Math.max(5000, this.pendingMutations.currentValue.size * 5000); | ||
@@ -639,2 +638,3 @@ if (!this._isOnline) { | ||
else { | ||
this._forceSend(eventId, mutation); | ||
// (XXX): If a transaction is pending for over 3 seconds, | ||
@@ -641,0 +641,0 @@ // we want to unblock the UX, so mark it as enqueued |
{ | ||
"name": "@instantdb/core", | ||
"version": "0.10.30", | ||
"version": "0.10.31", | ||
"description": "Instant's core local abstraction", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -655,3 +655,2 @@ // @ts-check | ||
} | ||
this._forceSend(eventId, mutation); | ||
const timeoutMs = Math.max( | ||
@@ -665,2 +664,4 @@ 5000, | ||
} else { | ||
this._forceSend(eventId, mutation); | ||
// (XXX): If a transaction is pending for over 3 seconds, | ||
@@ -667,0 +668,0 @@ // we want to unblock the UX, so mark it as enqueued |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2861124