Skip to content

fix(router): prevent routerOutlet from extra changeDetections - #16423

Closed
mhevery wants to merge 1 commit into
angular:masterfrom
mhevery:router_animation
Closed

mhevery wants to merge 1 commit into
angular:masterfrom
mhevery:router_animation

Conversation

@mhevery

@mhevery mhevery commented Apr 28, 2017

Copy link
Copy Markdown
Contributor

Currently router performs change detection eagerly on component when the component is assigned to RouterOutlet. Another change detection is than performed globally. This double change detection presents a problem for animations.

@mhevery
mhevery requested review from matsko and vicb April 28, 2017 22:23
Currently router performs change detection eagerly on component when the
component is assigned to RouterOutlet. Another change detection is than
performed globally. This double change detection presents a problem for
animations.
@vicb vicb added area: router action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 28, 2017
detach(): ComponentRef<any>;
}

export class ProxyRouterOutlet implements IRouterOutlet {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should be implemented by RouterOutlet

delayApplys: Array<(delegate: IRouterOutlet) => void> = [];

get isActivated(): boolean {
return this.delegate!.isActivated;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

be explicit, do not use !

@vicb

vicb commented May 1, 2017

Copy link
Copy Markdown
Contributor

@mhevery what is the status here ? has the change been tested with @matsko code ?

@jasonaden
jasonaden self-requested a review May 10, 2017 20:33
@mhevery
mhevery deleted the router_animation branch June 2, 2017 17:08
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: router cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants