Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
/ redux-hist Public archive
forked from minodisk/redux-hist

Middlewares / Actions / Reducers for Redux around History API.

License

Notifications You must be signed in to change notification settings

syoya/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

Languages

  • TypeScript 100.0%