Skip to content

fixes #652#653

Open
chestozo wants to merge 1 commit into
masterfrom
issue-652
Open

fixes #652#653
chestozo wants to merge 1 commit into
masterfrom
issue-652

Conversation

@chestozo

Copy link
Copy Markdown
Member

No description provided.

@chestozo

Copy link
Copy Markdown
Member Author

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

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

Copy link
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

@chestozo chestozo Aug 30, 2017

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

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

this._fixTreeStateByModels(tree);

Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@3y3

3y3 commented Aug 30, 2017

Copy link
Copy Markdown

Тестики?

@chestozo

Copy link
Copy Markdown
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