Releases: smikhalevski/react-corsair
v0.0.8
Changelog: v0.0.7...v0.0.8
Fixed unchanged loading route reconciliation.
v0.0.7
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 anerrorComponent
.
v0.0.6
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 toroute_loading
.
v0.0.5
Changelog: v0.0.4...v0.0.5
Rewritten routing, SSR and history from scratch.
v0.0.4
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 onlyComponentType
values. -
Outlets were refactored.
-
Multiple bugfixes.
v0.0.3
Changelog: v0.0.2...v0.0.3
Added missing useHistorySubscription
export.
v0.0.2
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 ana
tag.
v0.0.1
Changelog: https://github.com/smikhalevski/react-corsair/commits/v0.0.1
Initial public release.