Repository navigation
Features
- Support asynchronous
OnMatchhandlers, allowing data loading before matched content and nested routers render. - Support dynamic route registration and unregistration. Removing the selected route rematches the remaining routes or clears the content when none matches.
Breaking changes
- Upgrade the target framework from .NET 5 to .NET 8.
- Change
Switch.OnMatchtoEventCallback<RouteMatchedEventArgs>. Handlers receive a single argument instead of(sender, args)and can returnvoidorTask. - Replace
RegisterRouteandUnregisterRoutewith awaitableRegisterRouteAsyncandUnregisterRouteAsync. - Change
RoutefromIDisposabletoIAsyncDisposable, replacingDispose()withDisposeAsync().