Router getCurrentNavigation always returns null : <p>In the latest version of Angular 7.2.6, I'm trying to pass data in router itself</p>

<pre><code>this.router.navigate(['other'], {state: {someData: 'qwert'}}
</code></pre>

<p>In the <code>OtherComponent</code> file, <code>this.router.getCurrentNavigation()</code> always return null</p>

<p><a href="https://stackblitz.com/edit/angular-uapqsj" rel="noreferrer">Stackblitz Link</a></p>

<p><a href="https://angular.io/api/router/Router#getcurrentnavigation" rel="noreferrer">Angular Docs - getCurrentNavigation</a></p>

<p><a href="https://angular.io/api/router/NavigationExtras#state" rel="noreferrer">Angular Docs - state</a></p>
