fix batch update

This commit is contained in:
Nolan Lawson 2018-01-17 19:52:18 -08:00
parent bfe0f1255a
commit f416413b7e

View file

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