Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ const {

const clientOnlyStore = createStore(
combineReducers({ router: reducer, yourReducer }),
// Or alternatively, if yourReducer is already the top-level reducers.
// (state, action) => {
// const s = { ...state };
// if (s.hasOwnProperty('router')) {
// delete s.router;
// }
//
// return {
// ...yourReducer(s, action),
// router: routerReducer(state && state.hasOwnProperty('router') ? state.router : undefined, action)
// };
// },
initialState,
compose(enhancer, applyMiddleware(middleware))
);
Expand All @@ -111,7 +123,7 @@ if (initialLocation) {
import { push, replace, go, goBack, goForward } from 'redux-little-router';

// `push` and `replace`
//
//
// Equivalent to pushState and replaceState in the History API.
// If you installed the router with a basename, `push` and `replace`
// know to automatically prepend paths with it. Both action creators
Expand Down