faster map loading

This commit is contained in:
muerwre 2019-02-19 11:19:08 +07:00
parent f24f43b71c
commit 6af37040d4
2 changed files with 2 additions and 1 deletions

View file

@ -164,6 +164,7 @@ class Component extends React.Component<Props, State> {
} }
</div> </div>
</Scroll> </Scroll>
<div className={classnames('dialog-maplist-pulse', { active: loading })} /> <div className={classnames('dialog-maplist-pulse', { active: loading })} />
</div> </div>
); );

View file

@ -603,7 +603,7 @@ function* mapsLoadMoreSaga() {
if (loading || list.length >= limit || limit === 0) return; if (loading || list.length >= limit || limit === 0) return;
yield delay(500); yield delay(100);
yield put(searchSetLoading(true)); yield put(searchSetLoading(true));
yield put(mapsSetShift(shift + step)); yield put(mapsSetShift(shift + step));