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
fix(ivy): <ng-container> fixes #25617
fix(ivy): <ng-container> fixes #25617
Conversation
You can preview 70866ec at https://pr25617-70866ec.ngbuilds.io/. |
} | ||
|
||
function typeName(type: TNodeType): string { | ||
if (type == TNodeType.Projection) return 'Projection'; | ||
if (type == TNodeType.Container) return 'Container'; | ||
if (type == TNodeType.View) return 'View'; | ||
if (type == TNodeType.Element) return 'Element'; | ||
if (type == TNodeType.ElementContainer) return 'ElementContainer'; | ||
return '<unknown>'; |
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.
Would this be more performant? j/w
// Move this object outside so it only gets created once
const nodeTypeName = {
TNodeType.Projection: 'Projection',
TNodeType.Container: 'Container',
TNodeType.View: 'View',
TNodeType.Element: 'Element',
TNodeType.ElementContainer: 'ElementContainer',
};
return nodeTypeName[type] || '<unknown>';
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 think that performance is consideration here since this is just assert code not present in production bundles.
elementContainerEnd(); | ||
} | ||
if (rf & RenderFlags.Update) { | ||
const tplRef = load(1); |
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.
reference
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.
Right, good catch, thnx!
70866ec
to
277a8ba
Compare
You can preview 277a8ba at https://pr25617-277a8ba.ngbuilds.io/. |
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.
LGTM
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. |
This PR contains fixes for 2 issues discovered when running TestBed spec on the existing tests from the
common
package.In both cases the issue boiled down to taking new node type into account when doing checks.