Function: useRecordInteraction()
useRecordInteraction():
UseMutationResult<void,Error,RecordInteractionInput,unknown>
Defined in: web/lib/hooks/use-discovery.ts:283
Mutation hook for recording user interactions with recommendations.
Returns
UseMutationResult<void, Error, RecordInteractionInput, unknown>
Remarks
Used to improve recommendations over time via feedback loop. Dismissals are used as negative signals.
Example
const { mutate: recordInteraction } = useRecordInteraction();
// When user dismisses a recommendation
recordInteraction({
preprintUri: 'at://did:plc:abc/pub.chive.preprint/123',
type: 'dismiss',
recommendationId: 'rec-123',
});