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

Function set

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

Source from the content-addressed store, hash-verified

52const listeners = new Set<() => void>();
53
54const set = (next: ReadingState) => {
55 state = next;
56 listeners.forEach((listener) => listener());
57};
58
59const subscribe = (listener: () => void) => {
60 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