Skip to content

Releases: smikhalevski/react-corsair

v0.0.8

19 Apr 13:29
Compare
Choose a tag to compare

Changelog: v0.0.7...v0.0.8

Fixed unchanged loading route reconciliation.

v0.0.7

14 Apr 21:55
Compare
Choose a tag to compare

Changelog: v0.0.6...v0.0.7

  • History navigation blocking:
useHistoryBlocker(() => {
  return hasUnsavedChanges && !confirm('Discard unsaved changes?')
});
  • Inline routes allow rendering a route that matches a location anywhere in your app:
const productController = useInlineRoute(productRoute.getLocation(42));
  
productController !== null && <RouteOutlet controller={productController}/>;
  • Fixed an unexpected error being thrown when redirect is called in an errorComponent.

v0.0.6

06 Apr 16:37
Compare
Choose a tag to compare

Changelog: v0.0.5...v0.0.6

  • Support for route interception with useInterceptedRoute hook.

  • React's rendered state is preserved if a route is used as a fallback (the React tree is kept intact when a route becomes a fallback).

  • loadingAppearance defaults to route_loading.

v0.0.5

04 Apr 10:20
Compare
Choose a tag to compare

Changelog: v0.0.4...v0.0.5

Rewritten routing, SSR and history from scratch.

v0.0.4

19 Jul 21:14
Compare
Choose a tag to compare

Changelog: v0.0.3...v0.0.4

  • React 18+ is now required.

  • Routes expose their components and PathnameTemplate.

  • Added createHashHistory.

  • Most of hooks were removed in favor of useRouteState.

  • *Fallback options were renamed to *Component and now accept only ComponentType values.

  • Outlets were refactored.

  • Multiple bugfixes.

v0.0.3

08 Jul 22:08
Compare
Choose a tag to compare

Changelog: v0.0.2...v0.0.3

Added missing useHistorySubscription export.

v0.0.2

08 Jul 22:08
Compare
Choose a tag to compare

Changelog: v0.0.1...v0.0.2

  • Routes now accept a parent.

  • createRoute was added.

  • Route content is rendered in an <Outlet/>.

  • Replaced URLPattern with a custom pattern matching implementation. Route pathnames can use $param syntax to declare params.

  • Added useNavigation that doesn't trigger component re-renders.

  • Added the Link component that triggers navigation through an a tag.

v0.0.1

27 Jun 21:42
Compare
Choose a tag to compare