Skip to content

2.2.1 Release

Latest

Choose a tag to compare

@hez2010 hez2010 released this 25 Oct 12:17

Features

  • Support asynchronous OnMatch handlers, 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.OnMatch to EventCallback<RouteMatchedEventArgs>. Handlers receive a single argument instead of (sender, args) and can return void or Task.
  • Replace RegisterRoute and UnregisterRoute with awaitable RegisterRouteAsync and UnregisterRouteAsync.
  • Change Route from IDisposable to IAsyncDisposable, replacing Dispose() with DisposeAsync().