@nxtedition/deepstream.io-client-js 26.0.8 → 26.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/record/record.js +4 -2
package/package.json
CHANGED
package/src/record/record.js
CHANGED
|
@@ -392,7 +392,7 @@ class Record {
|
|
|
392
392
|
this._version = nextVersion
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
_onUpdate([, version, data]) {
|
|
395
|
+
_onUpdate([, version, data, hasProvider]) {
|
|
396
396
|
const prevData = this._data
|
|
397
397
|
const prevVersion = this._version
|
|
398
398
|
const prevState = this._state
|
|
@@ -425,7 +425,9 @@ class Record {
|
|
|
425
425
|
this._onPatching(false)
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
-
if (this._state < C.RECORD_STATE.
|
|
428
|
+
if (this._state < C.RECORD_STATE.PROVIDER && hasProvider === 'T') {
|
|
429
|
+
this._state = C.RECORD_STATE.PROVIDER
|
|
430
|
+
} else if (this._state < C.RECORD_STATE.SERVER) {
|
|
429
431
|
this._state = this._version.charAt(0) === 'I' ? C.RECORD_STATE.STALE : C.RECORD_STATE.SERVER
|
|
430
432
|
}
|
|
431
433
|
|