redux-actions#createAction JavaScript Examples
The following examples show how to use
redux-actions#createAction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: action-utils.js From mixbox with GNU General Public License v3.0 | 7 votes |
export default function ({syncKeys = []}) {
return {
// 同步本地数据到state中,一般在项目启动时,会调用此action进行同步。各个模块的reducer要对应的函数处理同步逻辑
getStateFromStorage: createAction(types.GET_STATE_FROM_STORAGE, () => {
const Storage = getStorage();
return Storage.multiGet(syncKeys);
}, (onResolve, onReject, onComplete) => {
return {
onResolve,
onReject,
onComplete,
};
}),
};
}
Example #2
Source File: common.js From doraemon with GNU General Public License v3.0 | 5 votes |
requestStrategy = createAction('request strategy')
Example #3
Source File: profile.js From haven with MIT License | 5 votes |
clearProfileError = createAction(actions.clearProfileError)
Example #4
Source File: common.js From doraemon with GNU General Public License v3.0 | 5 votes |
requestLogin = createAction('request login')
Example #5
Source File: actions.js From real-frontend with GNU General Public License v3.0 | 5 votes |
authSignupSuccess = createAction(constants.AUTH_SIGNUP_SUCCESS)
Example #6
Source File: tabList.js From doraemon with GNU General Public License v3.0 | 5 votes |
requestTabList = createAction('request tab list')
Example #7
Source File: actions.js From real-frontend with GNU General Public License v3.0 | 5 votes |
globalAuthUserTrigger = createAction('GLOBAL_AUTH_USER_TRIGGER')
Example #8
Source File: user.action.js From EMP with MIT License | 5 votes |
loginSuccess = createAction(userConstants.LOGIN_SUCCESS)
Example #9
Source File: tabList.js From doraemon with GNU General Public License v3.0 | 5 votes |
deleteTabFromList = createAction('delete tab from list')