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

Function log

packages/shared/src/features/feedExplain/components/WhatsOffBox.tsx:345–353  ·  view source on GitHub ↗
(event: LogEvent, change: WhatsOffChange)

Source from the content-addressed store, hash-verified

343 }, [isPending, isApplied, isConfirming, picked]);
344
345 const log = (event: LogEvent, change: WhatsOffChange) =>
346 logEvent({
347 event_name: event,
348 target_type: TargetType.WhatsOff,
349 target_id: answerId,
350 extra: JSON.stringify(
351 getWhatsOffChangeExtra(line, index, change, isPlus),
352 ),
353 });
354
355 const onPick = (change: WhatsOffChange) => {
356 shouldFocus.current = true;

Callers 3

onPickFunction · 0.70
onApplyFunction · 0.70
onUndoFunction · 0.70

Calls 2

getWhatsOffChangeExtraFunction · 0.90
logEventFunction · 0.85

Tested by

no test coverage detected