Skip to main content

Function: useDismissSuggestion()

useDismissSuggestion(): UseMutationResult<{ success: boolean; }, Error, { externalId: string; source: string; }, { previousData: [readonly unknown[], undefined | OutputSchema][]; }>

Defined in: web/lib/hooks/use-claiming.ts:481

Mutation hook to dismiss a paper suggestion.

Returns

UseMutationResult<{ success: boolean; }, Error, { externalId: string; source: string; }, { previousData: [readonly unknown[], undefined | OutputSchema][]; }>

Mutation for dismissing a suggestion

Remarks

Records that the user does not want to see a particular paper suggestion. Uses optimistic updates to remove the paper from the list immediately.