Creates a new Consumable that intersects another Consumable. The new Consumable updates and dispatches whenever the other Consumable changes.
const value = createConsumable(2);const isGreater = intersect(cons, (value) => value > 5);// > isGreater == false;value.dispatch(6);// > isGreater == true; Copy
const value = createConsumable(2);const isGreater = intersect(cons, (value) => value > 5);// > isGreater == false;value.dispatch(6);// > isGreater == true;
Generated using TypeDoc
Creates a new Consumable that intersects another Consumable. The new Consumable updates and dispatches whenever the other Consumable changes.