Skip to content

Commit ea7fa74

Browse files
committed
fix: fix load backward error
1 parent 62ada9c commit ea7fa74

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/Store.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ export default class StoreImp implements Store {
534534
case 'backward': {
535535
this._dataList = this._dataList.concat(data)
536536
this._dataLoadMore.backward = realMore.backward
537+
this._lastBarRightSideDiffBarCount -= dataLengthChange
537538
adjustFlag = dataLengthChange > 0
538539
break
539540
}
@@ -670,15 +671,13 @@ export default class StoreImp implements Store {
670671
}
671672
}
672673
// More processing and loading, more loading if there are callback methods and no data is being loaded
673-
if (!this._loading && isValid(this._dataLoader) && isValid(this._symbol) && isValid(this._period)) {
674-
if (from === 0) {
675-
if (this._dataLoadMore.forward) {
676-
this._processDataLoad('forward')
677-
}
678-
} else if (to === totalBarCount) {
679-
if (this._dataLoadMore.backward) {
680-
this._processDataLoad('backward')
681-
}
674+
if (from === 0) {
675+
if (this._dataLoadMore.forward) {
676+
this._processDataLoad('forward')
677+
}
678+
} else if (to === totalBarCount) {
679+
if (this._dataLoadMore.backward) {
680+
this._processDataLoad('backward')
682681
}
683682
}
684683
}

0 commit comments

Comments
 (0)