本文整理汇总了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,
),
}),