Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
/ redux-hist Public archive

Middlewares / Actions / Reducers for Redux around History API.

License

Notifications You must be signed in to change notification settings

minodisk/redux-hist

Repository files navigation

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

About

Middlewares / Actions / Reducers for Redux around History API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published