本文整理匯總了TypeScript中redux.bindActionCreators函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript bindActionCreators函數的具體用法?TypeScript bindActionCreators怎麽用?TypeScript bindActionCreators使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了bindActionCreators函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: bindActionCreators
const mapDispatchToProps = (dispatch: any, ownProps: any) => {
return {
sendLoginDetailsToServer: bindActionCreators(actions().sendLoginDetailsToServer, dispatch),
sendSignupDetailsToServer: bindActionCreators(actions().sendSignupDetailsToServer, dispatch)
}
}
示例2: bindActionCreators
const getActions = () => {
if (actions) {
return actions
}
actions = bindActionCreators(newTabActions, store.dispatch.bind(store))
return actions
}
示例3: bindActionCreators
export const mapDispatchToProps = (dispatch) => bindActionCreators({
onAvatarChange: CurrentUserActions.uploadAvatar,
onUserDataChange: CurrentUserActions.updateUser,
onPasswordChange: CurrentUserActions.updateUserPassword,
onGenerateApiKey: CurrentUserActions.generateApiKey,
onDeleteApiKey: CurrentUserActions.deleteApiKey
}, dispatch);
示例4: bindActionCreators
export const mapDispatchToProps = (dispatch) => bindActionCreators({
fetchMetadata: BimActions.fetchMetadata,
setComponentState: BimActions.setComponentState,
clearStarredMetadata: StarredMetaActions.clearStarredMeta,
addMetaRecordToStarred: StarredMetaActions.addToStarredMeta,
removeMetaRecordFromStarred: StarredMetaActions.removeFromStarredMeta,
showConfirmDialog: DialogActions.showConfirmDialog
}, dispatch);
示例5: mapDispatchToThis
mapDispatchToThis(dispatch) {
return bindActionCreators({
increment: CounterActions.increment,
decrement: CounterActions.decrement,
incrementIfOdd: CounterActions.incrementIfOdd,
incrementAsync: CounterActions.incrementAsync
}, dispatch);
}
示例6: bindActionCreators
export const mapDispatchToProps = (dispatch) =>
bindActionCreators(
{
fetchQuotaInfo: CurrentUserActions.fetchQuotaInfo,
fetchBillingData: BillingActions.fetchBillingData,
changeSubscription: BillingActions.changeSubscription
},
dispatch
);
示例7: bindActionCreators
export const mapDispatchToProps = (dispatch) => bindActionCreators({
addUser: UserManagementActions.addUser,
removeUser: UserManagementActions.removeUser,
updateJob: UserManagementActions.updateJob,
updatePermissions: UserManagementActions.updatePermissions,
onUsersSearch: UserManagementActions.getUsersSuggestions,
clearUsersSuggestions: UserManagementActions.clearUsersSuggestions,
fetchQuotaInfo: TeamspacesActions.fetchQuotaInfo
}, dispatch);
示例8: bindActionCreators
dispatch => ({
nodeBalancerConfigActions: bindActionCreators(
{
getAllNodeBalancerConfigs,
createNodeBalancerConfig,
updateNodeBalancerConfig,
deleteNodeBalancerConfig
},
dispatch
)
})
示例9: bindActionCreators
export const mapDispatchToProps = (dispatch) => bindActionCreators({
sendGetNotifications: NotificationsActions.sendGetNotifications,
sendUpdateNotificationRead: NotificationsActions.sendUpdateNotificationRead,
sendUpdateAllNotificationsRead: NotificationsActions.sendUpdateAllNotificationsRead,
sendDeleteNotification: NotificationsActions.sendDeleteNotification,
confirmSendDeleteAllNotifications: NotificationsActions.confirmSendDeleteAllNotifications,
upsertNotification: NotificationsActions.upsertNotification,
deleteNotification: NotificationsActions.deleteNotification,
showUpdatedFailedError: NotificationsActions.showUpdatedFailedError,
setDrawerPanelState: NotificationsActions.setDrawerPanelState
}, dispatch);
示例10: bindActionCreators
dispatch => ({
nodeBalancerActions: bindActionCreators(
{
getAllNodeBalancersWithConfigs,
getAllNodeBalancers,
createNodeBalancer,
deleteNodeBalancer,
updateNodeBalancer,
},
dispatch,
),
}),