0.0.4 • Published 7 years ago

redux-hist-dom v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

redux-hist Codeship Status for minodisk/redux-hist codecov

Middlewares / Actions / Reducers for Redux around History API.

Usage

API Reference

Actions

push(path: history.Path, state?: history.LocationState): ReduxActions.Action<{path: history.Path, state?: history.LocationState}>

replace(path: history.Path, state?: history.LocationState): ReduxActions.Action<{path: history.Path, state?: history.LocationState}>

go(diff: number): ReduxActions.Action<number>

goBack(): ReduxActions.Action<void>

goForward(): ReduxActions.Action<void>

Middlewares

createRouterMiddleware(router: Router, history: history.History): Redux.Middleware

createStaticRouterMiddleware(router: Router, pathname: string): Redux.Middleware

Reducers

reduceHistory(state: History, action: HistoryAction): History

reduceRouting(state: Routing, action: HistoryAction): Routing

Router

class Router

constructor()
router(path: pathToRegexp.Path): Key
exec(location: Pathname): Result

Related package