File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
packages/database/src/core Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -928,21 +928,21 @@ export class PersistentConnection extends ServerActions {
928
928
private restoreState_ ( ) {
929
929
//Re-authenticate ourselves if we have a credential stored.
930
930
this . tryAuth ( ) ;
931
-
931
+
932
+ for ( let i = 0 ; i < this . outstandingPuts_ . length ; i ++ ) {
933
+ if ( this . outstandingPuts_ [ i ] ) {
934
+ this . sendPut_ ( i ) ;
935
+ }
936
+ }
937
+
932
938
// Puts depend on having received the corresponding data update from the server before they complete, so we must
933
939
// make sure to send listens before puts.
934
940
for ( const queries of this . listens . values ( ) ) {
935
941
for ( const listenSpec of queries . values ( ) ) {
936
942
this . sendListen_ ( listenSpec ) ;
937
943
}
938
944
}
939
-
940
- for ( let i = 0 ; i < this . outstandingPuts_ . length ; i ++ ) {
941
- if ( this . outstandingPuts_ [ i ] ) {
942
- this . sendPut_ ( i ) ;
943
- }
944
- }
945
-
945
+
946
946
while ( this . onDisconnectRequestQueue_ . length ) {
947
947
const request = this . onDisconnectRequestQueue_ . shift ( ) ;
948
948
this . sendOnDisconnect_ (
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ export const generateWithValues = function(
48
48
* @return {!(string|number|boolean) }
49
49
*/
50
50
export const resolveDeferredValue = function (
51
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
52
value : { [ k : string ] : any } | string | number | boolean ,
53
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
52
54
serverValues : { [ k : string ] : any }
53
55
) : string | number | boolean {
54
56
if ( ! value || typeof value !== 'object' ) {
@@ -68,10 +70,10 @@ export const resolveDeferredValue = function(
68
70
*/
69
71
export const resolveDeferredValueTree = function (
70
72
tree : SparseSnapshotTree ,
71
- serverValues : Object
73
+ serverValues : object
72
74
) : SparseSnapshotTree {
73
75
const resolvedTree = new SparseSnapshotTree ( ) ;
74
- tree . forEachTree ( new Path ( '' ) , function ( path , node ) {
76
+ tree . forEachTree ( new Path ( '' ) , ( path , node ) => {
75
77
resolvedTree . remember (
76
78
path ,
77
79
resolveDeferredValueSnapshot ( node , serverValues )
@@ -90,7 +92,7 @@ export const resolveDeferredValueTree = function(
90
92
*/
91
93
export const resolveDeferredValueSnapshot = function (
92
94
node : Node ,
93
- serverValues : Object
95
+ serverValues : object
94
96
) : Node {
95
97
const rawPri = node . getPriority ( ) . val ( ) as
96
98
| Indexable
You can’t perform that action at this time.
0 commit comments