hooks/useSCFetchCourse
Functions
useSCFetchCourse()
useSCFetchCourse(
object):object
info
This custom hook is used to fetch a course object.
Parameters
| Parameter | Type | Description |
|---|---|---|
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
| Name | Type |
|---|---|
error | string |
refreshCourse() | () => void |
scCourse | SCCourseType |
setSCCourse() | (c) => void |