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): pipes should overwrite pipes with later entry in the pipes array #27910
Conversation
You can preview 9027f9a at https://pr27910-9027f9a.ngbuilds.io/. |
9027f9a
to
96466eb
Compare
You can preview 96466eb at https://pr27910-96466eb.ngbuilds.io/. |
@@ -55,7 +55,7 @@ export function pipe(index: number, pipeName: string): any { | |||
*/ | |||
function getPipeDef(name: string, registry: PipeDefList | null): PipeDef<any> { | |||
if (registry) { | |||
for (let i = 0; i < registry.length; i++) { | |||
for (let i = registry.length - 1; i >= 0; i--) { |
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.
Is this performance critical? Maybe a compiler might optimize this for you but you could avoid computing the length-1
each loop by assigning it to a constant.
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.
B...but...he's not computing it each loop 😕
Or did you mean not to compute it on each getPipeDef()
call?
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.
LOL! Sorry. Not actually reading the code.
@marclaval could you please rebase from the latest master and resolve conflict (and add "merge" label back)? Thank you. |
96466eb
to
004fca9
Compare
You can preview 004fca9 at https://pr27910-004fca9.ngbuilds.io/. |
PR rebased and ready for merge |
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 fixes FW-894.