This repository has been archived by the owner on May 3, 2024. It is now read-only.
Release Version 0.11.0 BREAKING RELEASE!
Pre-release
Pre-release
This release version breaks compatibility with previous releases. To use ion-router, you need to use the store enhancer instead of middleware.
import { createStore } from 'redux'
import { connect, combineReducers } from 'react-redux'
import makeRouter, { makeRouterStoreEnhancer, routerReducer } from 'ion-router'
import todoApp from './reducers'
import App from './components/App'
// set up the router and create the store
const routerEnhancer = makeRouterStoreEnhancer()
const store = createStore(combineReducers({
// ... your reducers here
routing: routerReducer
}), undefined, routerEnhancer)
makeRouter(connect, store)
This release removes makePath
, onServer
, routeMatches
(only makePath was documented)
This release also fixes #14