hooks/useSCFetchVote
Functions
useSCFetchVote()
useSCFetchVote(
object):object
info
This custom hook is used to fetch a contribution vote.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | FetchVoteProps | * |
Returns
object
| Name | Type | Default value |
|---|---|---|
contributionReaction | SCReactionType | - |
contributionReactionsCount | any[] | - |
contributionVoteCount | number | - |
contributionVoted | boolean | - |
error | string | - |
handleFetchVoteList() | (__namedParameters) => void | - |
handleVote() | (reaction?) => void | - |
isLoading | boolean | - |
isLoadingVoteList | boolean | - |
isVoting | boolean | - |
reactions | object | - |
reactions.default | SCReactionType | - |
reactions.isLoading | boolean | scVoteContext.isLoading |
reactions.reactions | SCReactionType[] | scVoteContext.reactions |
voteList | SCVoteType[] | - |
voteListHasNext | boolean | - |