Releases: salvoravida/redux-first-history
Releases · salvoravida/redux-first-history
v5.2.0
v5.1.1
v5.1.0
- Added support for basename
import { createReduxHistoryContext } from "redux-first-history";
import { createBrowserHistory } from 'history'; //v5
const { createReduxHistory, routerMiddleware, routerReducer } = createReduxHistoryContext({
history: createBrowserHistory(),
basename: '/app',
//other options if needed
});
v5.0.12
fix: remove deprecated oldLocationChangePayload from interface
v5.0.11
fix: type for Location in locationChangeAction and history 5.x
v5.0.10
- fix: remove reach/router dep if not needed
v5.0.9
v5.0.8
v5.0.7
- restored internal rr6 support (react-router v6.1.1)
rr6 support :
import { HistoryRouter as Router } from "redux-first-history/rr6";
import { Route, Routes, Navigate } from "react-router-dom";
//...
import { store, history } from "./store";
//...
<Router history={history}>
<Routes>
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/" element={<Home />} />
<Route path="*" element={<Navigate to="/" />} />
</Routes>
</Router>
demo rr6 here: https://codesandbox.io/s/redux-first-history-demo-rr6-uccuw
v5.0.6
- removed rr6 folder since is now merged into react-router 6.1.0 https://github.com/remix-run/react-router/releases/tag/v6.1.0
rr6 support :
import { Route, Routes, Navigate, HistoryRouter as Router } from "react-router-dom";
import { store, history } from "./store";
//...
<Router history={history}>
<Routes>
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/" element={<Home />} />
<Route path="*" element={<Navigate to="/" />} />
</Routes>
</Router>