Skip to content

Commit e3eeca9

Browse files
committed
Запрещаем обновление скрытых видов, кроме async
Проблема заключается в том, что если подписка на модели делает this.update, то для скрытых видов это может приводить к странным последвствиям
1 parent 20c5e1e commit e3eeca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ns.update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
}
7171

7272
// надо именно false, если вид ни разу не рисовался, то будет null
73-
if (this.view._visible === false) {
73+
if (this.view._visible === false && !this.view.isLoading()) {
7474
this._reject({
7575
error: ns.U.STATUS.HIDDEN_VIEW
7676
});

0 commit comments

Comments
 (0)