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