# Child router "isNavigating"

**URL:** <https://discourse.aurelia.io/t/child-router-isnavigating/2554>\
**Category:** Help Requests\
**Created:** [May 15, 2019, 11:06am UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554 "2019-05-15T11:06:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![elitemike](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitemike/32/690_2.png) [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Post date:** [May 15, 2019, 11:06am UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/1 "2019-05-15T11:06:47Z")

</div>

My site relies on 2 to 3 levels of child routers at almost all times. I have a loading indicator which is bound to the main router.isNavigating property and that seems to work, unfortunately it doesn’t seem to ever change for the child routes. What do I need to do?

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [May 15, 2019, 12:46pm UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/2 "2019-05-15T12:46:44Z")

</div>

From what you said, is it correct to say `isNavigating` wasn’t change when your child routes got changed?

---

<div class="post-metadata">

**Author:** ![elitemike](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitemike/32/690_2.png) [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Post date:** [May 15, 2019, 1:01pm UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/3 "2019-05-15T13:01:17Z")

</div>

Yes, that is exactly what I meant. I was just about to come on here and remove my post. It magically is doing as it should… I changed zero code (I Swear)

---

<div class="post-metadata">

**Author:** ![elitemike](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitemike/32/690_2.png) [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Post date:** [May 15, 2019, 2:24pm UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/4 "2019-05-15T14:24:59Z")

</div>

Actually the issue is with Firefox, I have 2 properties being tested to show my loading indicator which is just nprogress. One is router.isNavigating and the other is httpClient.isRequesting. In chrome, everything works as expected, but in firefox, the isNavigating only seems to trigger once.

---

<div class="post-metadata">

**Author:** ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)\
**Post date:** [May 16, 2019, 1:10am UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/5 "2019-05-16T01:10:04Z")

</div>

I also have a global spinner for slow route/subroute, I cannot reproduce your issue on Firefox. Are you able to create a small demo project to reproduce it?

You can simulate a slow route by adding delay to a route.

```auto
activate() {
  return new Promise(resolve => {
    setTimeout(resolve, 3000);
  });
}

```

---

<div class="post-metadata">

**Author:** ![elitemike](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitemike/32/690_2.png) [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Post date:** [May 16, 2019, 10:59am UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/6 "2019-05-16T10:59:38Z")

</div>

Unfortunately there is no way for me to recreate my project quickly. I will intentionally delay activate like you did just to see if maybe the activate methods are happening faster in firefox.

---

<div class="post-metadata">

**Author:** ![elitemike](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitemike/32/690_2.png) [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Post date:** [May 16, 2019, 11:15am UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/7 "2019-05-16T11:15:19Z")

</div>

So when there is a a promise in the activate with a timeout, i do see the indicator in firefox. Firefox must be faster at handling the pipeline?

---

<div class="post-metadata">

**Author:** ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)\
**Post date:** [May 16, 2019, 11:47am UTC](https://discourse.aurelia.io/t/child-router-isnavigating/2554/8 "2019-05-16T11:47:33Z")

</div>

From what you described, it is likely just took fast.
