Skip to main content

hooks/useSCFetchCourse

Functions

useSCFetchCourse()

useSCFetchCourse(object): object

info

This custom hook is used to fetch a course object.

Parameters

ParameterTypeDescription
object{ cacheStrategy: CacheStrategies; course: SCCourseType; id: string | number; params: CourseInfoParams; }*
object.cacheStrategy?CacheStrategies*
object.course?SCCourseType*
object.id?string | number*
object.params?CourseInfoParams

Returns

object

NameType
errorstring
refreshCourse()() => void
scCourseSCCourseType
setSCCourse()(c) => void