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

Function enqueueStreakView

packages/shared/src/lib/streakViewQueue.ts:55–63  ·  view source on GitHub ↗
(view: QueuedStreakView)

Source from the content-addressed store, hash-verified

53 a.postId === b.postId;
54
55export const enqueueStreakView = (view: QueuedStreakView): void => {
56 const queue = readStreakViewQueue();
57
58 if (queue.some((item) => isSameView(item, view))) {
59 return;
60 }
61
62 writeStreakViewQueue([...queue, view]);
63};
64
65export const removeStreakView = (
66 view: Pick<QueuedStreakView, 'postId'>,

Callers 2

useViewPostFunction · 0.90

Calls 3

readStreakViewQueueFunction · 0.85
isSameViewFunction · 0.85
writeStreakViewQueueFunction · 0.85

Tested by

no test coverage detected