# Microsoft.AspNetCore.Components.Routing

``` diff
 namespace Microsoft.AspNetCore.Components.Routing {
     public class Router : IComponent, IDisposable, IHandleAfterRender {
-        public Func<NavigationContext, Task> OnNavigateAsync { get; set; }
+        public EventCallback<NavigationContext> OnNavigateAsync { get; set; }
     }
 }
```

