Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

Also export unscoped action creators #225

Merged
merged 1 commit into from
Jan 21, 2016
Merged
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: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ function transition(method) {
})
}

export const routeActions = {
push: transition('push'),
replace: transition('replace'),
go: transition('go'),
goBack: transition('goBack'),
goForward: transition('goForward')
}
export const push = transition('push')
export const replace = transition('replace')
export const go = transition('go')
export const goBack = transition('goBack')
export const goForward = transition('goForward')

export const routeActions = { push, replace, go, goBack, goForward }

function updateLocation(location) {
return {
Expand Down