Skip to content

scully.getCurrent() is not connected to router state change #604

@stevermeister

Description

@stevermeister

🐞 Bug report

Description

maybe it was planned.
but when I change the router state I expect to have a new currentState from getCurrent() Observable:

this.scully.getCurrent().subscribe(current => ...);

temporary workaround:

    this.router.events.pipe(
      filter(event => event instanceof NavigationEnd),
      switchMap(_ => this.getCurrent()))
      .subscribe(article => this.article = article);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions