We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae589bf commit 1fb385cCopy full SHA for 1fb385c
lib/session-state.js
@@ -124,7 +124,8 @@ class SessionState {
124
}
125
126
async _updateSnapshotStorage(storage) {
127
- while (this.atomized && this.atomized.flushing) await this.atomized.flushed()
+ if (!this.atomized || !this.atomized.flushing) return this.treeInfo()
128
+ while (this.atomized.flushing) await this.atomized.flushed()
129
130
let rx = storage.read()
131
const headPromise = rx.getHead()
0 commit comments