Skip to main content

useRemoveEntityDownvote

Overview

The useRemoveEntityDownvote hook provides a way to remove a previously cast downvote from an entity.

Usage Example

Parameters & Returns

Parameters

The removeEntityDownvote function returned by the hook accepts a single object with the following field:
entityId
string
The ID of the entity whose downvote to remove.

Returns

The function returns a Promise<Entity> representing the API response:
Updated comment
Entity
The updated entity after the downvote is successfully removed.