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