Skip to main content

hooks/useSCFetchLesson

Functions

useSCFetchLesson()

useSCFetchLesson(object): object

info

This custom hook is used to fetch a lesson object.

Parameters

ParameterTypeDescription
object{ cacheStrategy: CacheStrategies; courseId: string | number; id: string | number; lesson: SCCourseLessonType; sectionId: string | number; }*
object.cacheStrategy?CacheStrategies
object.courseIdstring | number-
object.id?string | number*
object.lesson?SCCourseLessonType*
object.sectionIdstring | number-

Returns

object

NameType
errorstring
scLessonSCCourseLessonType
setSCLesson()(lesson) => void