hooks/useSCFetchCustomAdv
Functions
useSCFetchCustomAdv()
useSCFetchCustomAdv(
object):object
info
This custom hook is used to fetch a custom adv object.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | { active: boolean; cacheStrategy: CacheStrategies; categoriesId: number[]; id: number; position: SCCustomAdvPosition; } | * |
object.active? | boolean | - |
object.cacheStrategy? | CacheStrategies | |
object.categoriesId? | number[] | * |
object.id? | number | * |
object.position? | SCCustomAdvPosition | * |
Returns
object
| Name | Type |
|---|---|
error | string |
scCustomAdv | SCCustomAdvType |
setSCCustomAdv | Dispatch<SetStateAction<SCCustomAdvType>> |