本文整理匯總了TypeScript中angular-rx-ui/src/components/core.addOrUpdate函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript addOrUpdate函數的具體用法?TypeScript addOrUpdate怎麽用?TypeScript addOrUpdate使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了addOrUpdate函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: addOrUpdate
export const addPropertyReducer = (state, action) => {
if (action instanceof actions.AddOrUpdatePropertyAction) {
addOrUpdate({ items: state.properties, item: action.entity });
}
return state;
}
示例2: addOrUpdate
export const addDigitalAssetReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateDigitalAssetAction) {
addOrUpdate({ items: state.digitalAssets, item: action.entity });
}
return state;
}
示例3: addOrUpdate
export const addYouTubeVideoReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateYouTubeVideoAction) {
addOrUpdate({ items: state.youTubeVideos, item: action.entity });
}
return state;
}
示例4: addOrUpdate
export const addAppReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateAppAction) {
addOrUpdate({ items: state.apps, item: action.entity });
}
return state;
}
示例5: addOrUpdate
export const addPhotoReducer = (state, action) => {
if (action instanceof actions.AddOrUpdatePhotoAction) {
addOrUpdate({ items: state.photos, item: action.entity });
}
return state;
}
示例6: addOrUpdate
export const addSectionReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateSectionAction) {
addOrUpdate({ items: state.sections, item: action.entity });
}
return state;
}
示例7: addOrUpdate
export const addTeamReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateTeamAction) {
addOrUpdate({ items: state.teams, item: action.entity });
}
return state;
}
示例8: addOrUpdate
export const addUIReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateUIAction) {
addOrUpdate({ items: state.uis, item: action.entity });
}
return state;
}
示例9: addOrUpdate
export const addArticleReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateArticleAction) {
addOrUpdate({ items: state.articles, item: action.entity });
}
return state;
}
示例10: addOrUpdate
export const addDelegationDashboardReducer = (state, action) => {
if (action instanceof actions.AddOrUpdateDelegationDashboardAction) {
addOrUpdate({ items: state.delegationDashboards, item: action.entity });
}
return state;
}