Skip to content

v3.7.1

Compare
Choose a tag to compare
@dsuryd dsuryd released this 14 May 18:38
· 493 commits to master since this release
74c212c

This release provides the much-needed enhancements to the React router, i.e. support for lazy-loading through integration with Webpack code splitting, 404 error handling, and server-side rendering.

Doc: https://dotnetify.net/core/api/routing

Features

  • Support lazy-loaded routes by allowing onRouteEnter to return a promise object and defer the routing until the promise (which should be used to dynamically import the view components) is resolved.
  • Include onRouteEnter in the connect's options argument.
  • Add enableSsr (client-side) and useSsr (server-side) APIs to support server-side rendering.
  • Router will now request '/404.html' when the path cannot be resolved.
    Note: to disable this feature, add dotnetify.react.router.notFound404Url = null;
  • Allow the route template to accept wildcard (*) URL pattern to catch 404 errors.

Bug Fixes

  • Fix useConnect to merge the existing state with the new state instead of replacing it (#237).
  • Fix routing so it can match "/" paths.
  • Fix JObject.Parse exception in Update_VM when using System.Text.Json (#239).