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

Function set

packages/shared/src/components/shell/readingStore.ts:55–58  ·  view source on GitHub ↗
(next: ReadingState)

Source from the content-addressed store, hash-verified

53const listeners = new Set<() => void>();
54
55const set = (next: ReadingState) => {
56 state = next;
57 listeners.forEach((listener) => listener());
58};
59
60const subscribe = (listener: () => void) => {
61 listeners.add(listener);

Callers 13

setReadingOpenFunction · 0.70
setReadingUpFunction · 0.70
updateReadingArticleFunction · 0.70
closeReadingFunction · 0.70
BookmarkReminderModalFunction · 0.50
seedSnapshotFunction · 0.50
seedEnrolledFunction · 0.50
atNineAMFunction · 0.50
getRemindAtFunction · 0.50
PageFunction · 0.50
BookmarksPage.tsxFile · 0.50

Calls

no outgoing calls

Tested by 2

seedSnapshotFunction · 0.40
seedEnrolledFunction · 0.40