title: Navigation ID is not equal to the current router navigation id error
body: <p>I'm using <a href="https://github.com/ngrx/platform" rel="noreferrer">@ngrx/router-store</a> in my Angularv5 app and I recently started running into a an error: <code>Navigation ID X is not equal to the current navigation id Y</code> (where X and Y are integers).</p>
  
  <p>This problem happens consistently when I navigate to route A from a specific route B. Navigating to route A from any other route seems to work fine.</p>
  
  <p>The only other <a href="https://stackoverflow.com/questions/41937115/angular-2-navigationcancel-navigation-id-2-is-not-equal-to-the-current-naviga">S.O. issue related to this</a> which I've found, offers up the possibility that the issue could be caused by rapidly updating the navigation multiple times. To test if this was happening (it shouldn't be), I subscribed to router navigation events inside my root component, set a breakpoint inside the subscription, and opened up a debug session to step through the problem. Doing this, I can see that</p>
  
  <ol>
  <li><p>Say the current navigation ID is 11. When I navigate to the problem route, the router starts navigation, successfully executes every navigation event including <code>NavigationEnd</code> and then immediately @ngrx/router-store throws an <code>'ROUTER_CANCEL'</code> action stating that: <code>Navigation ID 12 is not equal to the current navigation id 13</code>. As far as I can tell, 12 is the correct navigation ID (again, navigation ID 11 completes and immediately <code>'ROUTER_CANCEL'</code> is thrown without the router emitting any further navigation events). Furthermore, the <code>'ROUTER_CANCEL'</code> action payload contains both the router navigation event that caused the problem, as well as the state of the store when the problem was caused. The event which caused the problem has an ID of 12, the router state in the store at the time had an ID of 11. So again, 12 seems to be the correct navigation ID and should not be throwing an error.</p></li>
  <li><p>On navigation to the user profile route from a problem route, no other navigation occurs until @ngrx/router-store cancels navigation. (i.e. I am not rapidly updating the navigation route)</p></li>
  <li><p>Other than ngrx dispatching a <code>'ROUTER_CANCEL'</code> action, no errors are  reported (and no errors are thrown).</p></li>
  </ol>
  
  <p>Again, the route experiencing problems works fine unless navigation begins from a specific route B. As far as I can tell, there is nothing different or unusual about this specific route B (nor does the problem route A care where people are coming from--the two routes have no association with each other).</p>
  
  <p>One last thing: triggering the bug outside of a debug session always seems to cause errors in the form <code>Navigation ID X is not equal to the current navigation id X+1</code>, however triggering the bug inside a debug session might cause <code>Navigation ID 11 is not equal to the current navigation id 15</code> or <code>Navigation ID 13 is not equal to the current navigation id 20</code>, etc.</p>
  
  <p>Does anyone have any ideas what is going on? I'm not familiar enough with @ngrx/router-store to really guess how this might be happening. My assumption is that the navigation ID value in the store increases synchronously when <code>NavigationEnd</code> events are received by @ngrx/router-store, so I'm not even sure how the ids could <em>ever</em> get out of order---let alone in this case where the ids appear to be correct.</p>
  
  <p>Any thoughts are greatly appreciated!</p>
  
  <p>PS: I'm happy to post code, but my app is large and I don't have any clues as to where this bug is being triggered from.</p>