Skip to content

Injecting router service into EmberRouter infinitely recurses #17791

Open
@locks

Description

@locks

Code sample:

// app/router.js
const Router = EmberRouter.extend({
  location: config.locationType,
  rootURL: config.rootURL,

  routerService: service('router'),

  init() {
    this.routerService.on('routeDidChange', () => {});
  }
});

Reproduction: https://github.com/ember-triage/emberjs-17791

P.S. Injecting router into EmberRouter also breaks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions