hooks/useSCFetchFeedObject
Functions
useSCFetchFeedObject()
useSCFetchFeedObject(
object):object
info
This custom hook is used to fetch a feed object.
Parameters
| Parameter | Type | Description |
|---|---|---|
object | { cacheStrategy: CacheStrategies; feedObject: SCFeedObjectType; feedObjectType: DISCUSSION | POST | STATUS; id: string | number; } | * |
object.cacheStrategy? | CacheStrategies | |
object.feedObject? | SCFeedObjectType | * |
object.feedObjectType? | DISCUSSION | POST | STATUS | * |
object.id? | string | number | * |
Returns
object
| Name | Type |
|---|---|
error | string |
obj | SCFeedObjectType | SCFeedDiscussionType | SCFeedPostType |
setObj() | (newObj) => void |