redux-first-history v5.0.0-beta.1 Release Notes

Release Date: 2020-08-29 // over 3 years ago
  • ๐Ÿ’ฅ 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);


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.1

      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(), listenObject: true, // support react-router v6.0 });export const history = createReduxHistory(store);export const reachHistory = reachify(history);export const wouterUseLocation = createWouterHook(history);