hooks/useSCFetchLesson
Functions
useSCFetchLesson()
useSCFetchLesson(
object
):object
info
This custom hook is used to fetch a lesson object.
Parameters
Parameter | Type | Description |
---|---|---|
object | { cacheStrategy : CacheStrategies ; courseId : string | number ; id : string | number ; lesson : SCCourseLessonType ; sectionId : string | number ; } | * |
object.cacheStrategy? | CacheStrategies | |
object.courseId | string | number | - |
object.id? | string | number | * |
object.lesson? | SCCourseLessonType | * |
object.sectionId | string | number | - |
Returns
object
Name | Type |
---|---|
error | string |
scLesson | SCCourseLessonType |
setSCLesson() | (lesson ) => void |