MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / Subscription

Function Subscription

code/redux/public/app.js:19538–19546  ·  view source on GitHub ↗
(store, parentSub, onStateChange)

Source from the content-addressed store, hash-verified

19536
19537var Subscription = function () {
19538 function Subscription(store, parentSub, onStateChange) {
19539 _classCallCheck(this, Subscription);
19540
19541 this.store = store;
19542 this.parentSub = parentSub;
19543 this.onStateChange = onStateChange;
19544 this.unsubscribe = null;
19545 this.listeners = nullListeners;
19546 }
19547
19548 Subscription.prototype.addNestedSub = function addNestedSub(listener) {
19549 this.trySubscribe();

Callers

nothing calls this directly

Calls 1

_classCallCheckFunction · 0.70

Tested by

no test coverage detected