Skip to content
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

$onInit is called twice when componentProvider is used #3735

Closed
1 of 3 tasks
valterkraemer opened this issue Aug 14, 2018 · 2 comments
Closed
1 of 3 tasks

$onInit is called twice when componentProvider is used #3735

valterkraemer opened this issue Aug 14, 2018 · 2 comments
Labels

Comments

@valterkraemer
Copy link

This is a:

  • Bug Report
  • Feature Request
  • General Query

My version of UI-Router is: 1.0.20

Bug Report

Current Behavior:

$onInit is called twice when componentProvider is used.

Expected Behavior:

$onInit should be called once.

Link to Plunker or stackblitz that reproduces the issue:

Navigating to about fires $onInit twice (componentProvider ). Home only once (component).

https://stackblitz.com/edit/ui-router-angularjs-g5wlce?file=app.js

This issue have been introduced recently, I think it worked in 1.0.17.

mlnkw added a commit to mlnkw/ui-router that referenced this issue Jun 9, 2019
mlnkw added a commit to mlnkw/ui-router that referenced this issue Jun 9, 2019
@N1ck
Copy link

N1ck commented Jul 28, 2019

#3779 appears to fix this issue.

@stale
Copy link

stale bot commented Jan 24, 2020

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues
may be reopened.

Thank you for your contributions.

@stale stale bot added the stale label Jan 24, 2020
@stale stale bot closed this as completed Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants