-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
RouterOutlet loads component 2x in a race condition #7497
Comments
Setting to P1 as the issue the commit that introduced this logic was marked as P0... (#7318) |
mhevery
added a commit
to mhevery/angular
that referenced
this issue
Mar 11, 2016
3 tasks
mhevery
added a commit
to mhevery/angular
that referenced
this issue
Mar 11, 2016
mhevery
added a commit
to mhevery/angular
that referenced
this issue
Mar 11, 2016
mhevery
added a commit
to mhevery/angular
that referenced
this issue
Mar 11, 2016
mhevery
added a commit
to mhevery/angular
that referenced
this issue
Mar 16, 2016
mhevery
added a commit
to mhevery/angular
that referenced
this issue
Mar 16, 2016
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RouterOutlet#reuse
checks if there is no current_componentRef
and in that case creates a new component.However,
_componentRef
is not set until the call toDynamicComponentLoader.loadNextToLocation
is finished (inRouterOutlet#activate
). If that call takes a bit longer (e.g. loading an html file from the server)RouterOutlet
will create 2 instances of the component.On my branch for codegen templates that changes the timing of
DynamicComponentLoading
a bit, the test forsyncRoutesWithDynamicComponents
(insync_route_spec_impl.ts
) fails because of this.The text was updated successfully, but these errors were encountered: