fix batch update

This commit is contained in:
Nolan Lawson 2018-01-17 19:52:18 -08:00
parent bfe0f1255a
commit f416413b7e
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ class VirtualListStore extends Store {
batch[subKey] = value batch[subKey] = value
requestAnimationFrame(() => { requestAnimationFrame(() => {
let batch = this._batches[key]
if (!batch) {
return
}
let updatedKeys = Object.keys(batch) let updatedKeys = Object.keys(batch)
if (!updatedKeys.length) { if (!updatedKeys.length) {
return return