Last active
March 3, 2019 11:26
-
-
Save ondrej-janosik/dbfcd1c99f4acf2d1c762840fb4e19c3 to your computer and use it in GitHub Desktop.
redux-starter-kit createAction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createAction, createReducer } from 'redux-starter-kit'; | |
/** | |
* Adds marker to the map. Payload: marker data | |
*/ | |
export const addMarker = createAction('map/add-marker'); | |
/** | |
* Toggles marker visibility. Payload: marker id | |
*/ | |
export const toggleMarkerVisibility = createAction( | |
'map/toggle-marker-visibility', | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment