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

Function preview

packages/shared/src/features/feedExplain/useFeedTune.ts:91–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 const add = (change: TuneChange) => setChanges([...changes, change]);
90
91 const preview = () => {
92 if (!pendingCount) {
93 return;
94 }
95 logEvent({
96 event_name: LogEvent.PreviewFeedTune,
97 extra: JSON.stringify({ changes: latest.size, pending: pendingCount }),
98 });
99 state.preview();
100 };
101
102 const save = () => {
103 const saved = latestChanges(changes);

Callers

nothing calls this directly

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected