Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Get Campaigns
- */
- export const getCampaigns = contactStrategyActionFactory.async<number, Campaign[], Error>('GET_CAMPAIGNS');
- export const campaignsLens = Lens.fromProp<ContactStrategyStore, 'campaigns'>('campaigns');
- const getCampaignsReducer = reducerFactory(getCampaigns, campaignsLens);
- const getCampaignsEpic: Epic = a$ =>
- a$.pipe(
- filterSwitchAsync(getCampaigns, companyId => from(GetCampaigns({ companyId }).then(({ campaigns }) => campaigns)))
- );
Add Comment
Please, Sign In to add comment