Skip to main content

useDownvoteEntity

Overview

The useDownvoteEntity hook provides a way to downvote an entity.

Usage Example

Parameters & Returns

Parameters

The downvoteEntity function returned by the hook accepts a single object with the following field:
entityId
string
The ID of the entity to be downvoted.

Returns

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