MCPcopy Create free account
hub / github.com/dailydotdev/apps / subscribe

Function subscribe

packages/shared/src/components/shell/readingStore.ts:59–64  ·  view source on GitHub ↗
(listener: () => void)

Source from the content-addressed store, hash-verified

57};
58
59const subscribe = (listener: () => void) => {
60 listeners.add(listener);
61 return () => {
62 listeners.delete(listener);
63 };
64};
65
66export const supportsReading = (): boolean =>
67 hasNativeHandler(WebKitMessageHandlers.Reading);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected