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

Function subscribe

code/styling/public/app.js:21225–21231  ·  view source on GitHub ↗
(listener)

Source from the content-addressed store, hash-verified

21223 }
21224
21225 function subscribe(listener) {
21226 var currentId = id;
21227 listeners[currentId] = listener;
21228 id += 1;
21229 listener(state);
21230 return currentId;
21231 }
21232
21233 function unsubscribe(unsubID) {
21234 listeners[unsubID] = undefined;

Callers 2

app.jsFile · 0.70
wrapWithThemeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected