redux-first-history v5.0.0-beta.1 Release Notes
Release Date: 2020-08-29 // over 4 years ago-
- ๐ support
history
v5.0.0 - ๐ support
react-router
v6.0.0-alpha.1
๐ https://github.com/ReactTraining/react-router/releases/tag/v6.0.0-alpha.1
๐ (removed "listenObject" flag, it will autodetect rr6/history5.x
๐ฅ BREAKING CHANGES:
โ removed oldLocationChangePayload flag
import { createReduxHistoryContext, reachify } from "redux-first-history";import { createWouterHook } from "redux-first-history/wouter";import { createBrowserHistory } from "history";const { createReduxHistory, routerMiddleware, routerReducer } = createReduxHistoryContext({ history: createBrowserHistory(), });export const history = createReduxHistory(store);export const reachHistory = reachify(history);export const wouterUseLocation = createWouterHook(history);
- ๐ support
Previous changes from v4.6.0-beta.1
-
- ๐ support
history
v5.0.0 ๐ support
react-router
v6.0.0 (add listenObject: true options )
๐ https://github.com/ReactTraining/react-router/releases/tag/v6.0.0-alpha.1import { createReduxHistoryContext, reachify } from "redux-first-history";import { createWouterHook } from "redux-first-history/wouter";import { createBrowserHistory } from "history";const { createReduxHistory, routerMiddleware, routerReducer } = createReduxHistoryContext({ history: createBrowserHistory(), listenObject: true, // support react-router v6.0 });export const history = createReduxHistory(store);export const reachHistory = reachify(history);export const wouterUseLocation = createWouterHook(history);
- ๐ support