Skip to content

v5.0.0

Compare
Choose a tag to compare
@salvoravida salvoravida released this 09 Nov 20:40
· 40 commits to master since this release
  • rewritten in TS
  • add support for react-router v6 !
  • tests coverage 100% !

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

BREAKING CHANGES:

  • removed option "oldLocationChangePayload"