Skip to content

Commit d79c698

Browse files
committed
fix: start action name change
1 parent d1a38bf commit d79c698

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/module/dust.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ const initState = {
1515
}
1616

1717
/* Action types */
18-
const START_FETCH_DUST = 'dust/START_FETCH_DUST';
18+
const REQUEST_FETCH_DUST = 'dust/REQUEST_FETCH_DUST';
1919
const SUCCESS_FETCH_DUST = 'dust/SUCCESS_FETCH_DUST';
2020
const FAILED_FETCH_DUST = 'dust/FAILED_FETCH_DUST';
2121

2222
export const ActionTypes = {
23-
START_FETCH_DUST,
23+
REQUEST_FETCH_DUST,
2424
SUCCESS_FETCH_DUST,
2525
FAILED_FETCH_DUST
2626
}
2727

2828

2929
/* Action creators */
30-
export const startFetchDust = createAction(START_FETCH_DUST);
30+
export const requestFetchDust = createAction(REQUEST_FETCH_DUST);
3131
export const successFetchDust = createAction(SUCCESS_FETCH_DUST);
3232
export const failedFetchDust = createAction(FAILED_FETCH_DUST);
3333

3434
/* Side effects */
3535
export const getDust = (region) => async (dispatch) => {
36-
dispatch(startFetchDust());
36+
dispatch(requestFetchDust());
3737

3838
try{
3939
const response = await fetch(getApi(region), {
@@ -56,7 +56,7 @@ const getApi = (region) => `https://9z2zrff9fe.execute-api.ap-northeast-2.amazon
5656

5757
/* reducers */
5858
export default handleActions({
59-
[START_FETCH_DUST]: (state, action) => {
59+
[REQUEST_FETCH_DUST]: (state, action) => {
6060
return updateObj(state, {
6161
pending: true,
6262
failed: false,

0 commit comments

Comments
 (0)