New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ivy): add query inheritance #25556
Conversation
7b099ed
to
a746c0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few nit picks but LGTM otherwise
const superViewQuery = superDef.viewQuery; | ||
if (superViewQuery) { | ||
if (prevViewQuery) { | ||
// tslint:disable-next-line:no-any viewQuery is readonly, but we need to set it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why you need this tslint disable. There must be something weird about your setup. We should investigate.
Preferred way is (definition as {viewQuery: ViewQuery}).viewQuery = ...
Also we could just take the readonly
away?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we could just take the readonly away?
We can, I just didn't want to do that if it was supposed to be readonly as a public API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
prevViewQuery(rf, ctx); | ||
}; | ||
} else { | ||
// tslint:disable-next-line:no-any viewQuery is readonly, but we need to set it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
it('should compose viewQuery', () => { | ||
const log: Array<[string, RenderFlags, any]> = []; | ||
|
||
// tslint:disable-next-line:class-as-namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert tslint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done... removed from entire file
}); | ||
} | ||
|
||
// tslint:disable-next-line:class-as-namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done... removed from entire file
it('should compose contentQueries', () => { | ||
const log: string[] = []; | ||
|
||
// tslint:disable-next-line:class-as-namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
}); | ||
} | ||
|
||
// tslint:disable-next-line:class-as-namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Adds inheritance handling for the following: - viewQuery - contentQueries - contentQueriesRefresh
0ecae68
to
bbf955a
Compare
You can preview bbf955a at https://pr25556-bbf955a.ngbuilds.io/. |
There's one Travis job that seems to be flaky. |
Adds inheritance handling for the following: - viewQuery - contentQueries - contentQueriesRefresh PR Close angular#25556
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds inheritance handling for the following: