Skip to content

Conversation

chestozo
Copy link
Member

No description provided.

@chestozo
Copy link
Member Author

@3y3 @vitkarpov @iEgit нужно ревью )

src/ns.view.js Outdated
if (this.async && this.isLoading() && !this.isModelsValid()) {
this.asyncState = true;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

изначально хотел подложить сюда вычисление asyncState - https://github.com/yandex-ui/noscript/pull/653/files#diff-8398699a573a08340668f2925b626201L794 - но упало много тестов ... а тут не падает ничего )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А новый тест-то на это есть? :)

Copy link
Member Author

@chestozo chestozo Aug 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) пока нет ) но старые не упали
но зато я понял уже, что не все кейсы потестил руками ...
пока ещё смотрю

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

на такое наткнулся #654

// всегда собираем данные, в том числе закешированные модели для async-view
tree.models = this._getModelsForTree();

this._fixTreeStateByModels(tree);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут нужно бы ещё проверять this.isLoading().

@chestozo
Copy link
Member Author

Мы пока решили запатчить у себя на стороне вьюхи :/

@3y3
Copy link

3y3 commented Aug 30, 2017

Тестики?

@chestozo
Copy link
Member Author

@3y3 will do )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants