istarkov / redux-observable-process-fetch

processes for redux-observable processor
25 stars 1 forks source link

Does not work with latest redux-observable #1

Open cynamonium opened 8 years ago

cynamonium commented 8 years ago

...since it has no combineDelegators method - i'm trying to use your code but it's not working with the latest version of redux-observable

cynamonium commented 8 years ago

@istarkov - can you help?

vyorkin commented 7 years ago

@cynamonium I think you can define it like this (taken from createFetchProcess.spec.js):

const combineDelegators = (...delegators) => (actions, store) =>
    Observable.merge(...(delegators.map((delegator) => delegator(actions, store))));

not sure if you should though