當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript redux.bindActionCreators函數代碼示例

本文整理匯總了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)

    }
}
開發者ID:mortonprod,項目名稱:CleaningWebsite,代碼行數:7,代碼來源:index.ts

示例2: bindActionCreators

const getActions = () => {
  if (actions) {
    return actions
  }
  actions = bindActionCreators(newTabActions, store.dispatch.bind(store))
  return actions
}
開發者ID:Snuupy,項目名稱:brave-core,代碼行數:7,代碼來源:api.ts

示例3: bindActionCreators

export const mapDispatchToProps = (dispatch) => bindActionCreators({
	onAvatarChange: CurrentUserActions.uploadAvatar,
	onUserDataChange: CurrentUserActions.updateUser,
	onPasswordChange: CurrentUserActions.updateUserPassword,
	onGenerateApiKey: CurrentUserActions.generateApiKey,
	onDeleteApiKey: CurrentUserActions.deleteApiKey
}, dispatch);
開發者ID:3drepo,項目名稱:3drepo.io,代碼行數:7,代碼來源:profile.container.ts

示例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);
開發者ID:3drepo,項目名稱:3drepo.io,代碼行數:8,代碼來源:bim.container.ts

示例5: mapDispatchToThis

 mapDispatchToThis(dispatch)  {
   return bindActionCreators({
       increment: CounterActions.increment,
       decrement: CounterActions.decrement,
       incrementIfOdd: CounterActions.incrementIfOdd,
       incrementAsync: CounterActions.incrementAsync
   }, dispatch);
 }
開發者ID:aptogo,項目名稱:angular2-webpack-starter,代碼行數:8,代碼來源:app.ts

示例6: bindActionCreators

export const mapDispatchToProps = (dispatch) =>
	bindActionCreators(
		{
			fetchQuotaInfo: CurrentUserActions.fetchQuotaInfo,
			fetchBillingData: BillingActions.fetchBillingData,
			changeSubscription: BillingActions.changeSubscription
		},
		dispatch
	);
開發者ID:3drepo,項目名稱:3drepo.io,代碼行數:9,代碼來源:subscription.container.ts

示例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);
開發者ID:3drepo,項目名稱:3drepo.io,代碼行數:9,代碼來源:users.container.ts

示例8: bindActionCreators

 dispatch => ({
   nodeBalancerConfigActions: bindActionCreators(
     {
       getAllNodeBalancerConfigs,
       createNodeBalancerConfig,
       updateNodeBalancerConfig,
       deleteNodeBalancerConfig
     },
     dispatch
   )
 })
開發者ID:linode,項目名稱:manager,代碼行數:11,代碼來源:nodeBalancerConfig.containers.ts

示例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);
開發者ID:3drepo,項目名稱:3drepo.io,代碼行數:11,代碼來源:notifications.container.ts

示例10: bindActionCreators

 dispatch => ({
   nodeBalancerActions: bindActionCreators(
     {
       getAllNodeBalancersWithConfigs,
       getAllNodeBalancers,
       createNodeBalancer,
       deleteNodeBalancer,
       updateNodeBalancer,
     },
     dispatch,
   ),
 }),
開發者ID:displague,項目名稱:manager,代碼行數:12,代碼來源:nodeBalancer.containers.ts


注:本文中的redux.bindActionCreators函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。