Skip to main content

useRemoveEntityUpvote

Overview

The useRemoveEntityUpvote hook provides a way to remove a previously cast upvote from an entity.

Usage Example

Parameters & Returns

Parameters

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

Returns

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