Skip to content

Commit

Permalink
refactor(actions): make CLAMP_PAGE an FSA
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Sep 22, 2017
1 parent bdc9b1a commit 73f78be
Showing 1 changed file with 3 additions and 4 deletions.
@@ -1,13 +1,12 @@
import { getLocation, getPageIndex, getMaxPageIndex } from '../selectors'
import { replaceRouteQuery } from '../utils/RoutingHelpers'
import { createAction } from 'redux-actions'

/* Adjust the page number so it is in the valid range.
* Dispatch after changing the filter.
*/
export const CLAMP_PAGE = Symbol('CLAMP_PAGE')
export function clampPage () {
return { type: CLAMP_PAGE }
}
export const CLAMP_PAGE = 'CLAMP_PAGE'
export const clampPage = createAction(CLAMP_PAGE)

export const UPDATE_PAGE = Symbol('UPDATE_PAGE')

Expand Down

0 comments on commit 73f78be

Please sign in to comment.