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