hooks/useSCFetchCommentObject
Functions
useSCFetchCommentObject()
useSCFetchCommentObject(
object
):object
info
This custom hooks is used to fetch a comment.
Parameters
Parameter | Type | Description |
---|---|---|
object | { cacheStrategy : CacheStrategies ; commentObject : SCCommentType ; id : number ; } | * |
object.cacheStrategy? | CacheStrategies | |
object.commentObject? | SCCommentType | * |
object.id? | number | * |
Returns
object
Name | Type |
---|---|
error | string |
obj | SCCommentType |
setObj | Dispatch <SetStateAction <SCCommentType >> |