callbag-proxy
v1.1.0
Published
Callbag proxy for solving circular dependencies
Downloads
5
Readme
callbag-proxy
Callbag proxy useful for solving circular dependencies between sources.
const proxy = makeProxy();
// later
proxy.connect(sourceToProxy);
npm install callbag-proxy
example
const makeProxy = require('callbag-proxy');
const sourceB_proxy = makeProxy();
const sourceA = /* code involving sourceB_proxy */
const sourceB = /* code involving sourceA */
sourceB_proxy.connect(sourceB);