fix batch update
This commit is contained in:
parent
bfe0f1255a
commit
f416413b7e
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue