MCPcopy
hub / github.com/rikschennink/fitty / subscribe

Function subscribe

src/fitty.js:201–205  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

199
200 // add a new fitty, does not redraw said fitty
201 const subscribe = (f) => () => {
202 if (f.active) return;
203 f.active = true;
204 requestRedraw();
205 };
206
207 // remove an existing fitty
208 const unsubscribe = (f) => () => (f.active = false);

Callers 1

fittyCreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…