Module: hooks/useSCFetchFeedObject
Functions
useSCFetchFeedObject
▸ useSCFetchFeedObject(object
): Object
info
This custom hook is used to fetch a feed object.
Parameters
Name | Type | Description |
---|---|---|
object | Object | * |
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 : any ) => void |