hooks/useSCFetchLessonCommentObjects
Interfaces
SCLessonCommentsObjectType
Interface SCLessonCommentsObjectType
Properties
| Property | Type |
|---|---|
comments | SCCourseCommentType[] |
componentLoaded | boolean |
isLoadingNext | boolean |
isLoadingPrevious | boolean |
next | string |
page | number |
previous | string |
reload | boolean |
total | number |
Functions
useSCFetchLessonCommentObjects()
useSCFetchLessonCommentObjects(
props):any
info
This custom hooks is used to fetch paginated comments for a specific course lesson.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | { cacheStrategy: CacheStrategies; id: number; lessonObject: SCCourseLessonType; offset: number; onChangePage: (page) => any; orderBy: SCCommentsOrderBy; pageSize: number; parent: number; } | |
props.cacheStrategy? | CacheStrategies | - |
props.id? | number | - |
props.lessonObject? | SCCourseLessonType | - |
props.offset? | number | - |
props.onChangePage? | (page) => any | - |
props.orderBy? | SCCommentsOrderBy | - |
props.pageSize? | number | - |
props.parent? | number | - |
Returns
any