Module: hooks/useSCFetchFeedObject
Functions
useSCFetchFeedObject
▸ useSCFetchFeedObject(object
): Object
info
This custom hook is used to fetch a feed object.
Parameters
Name | Type |
---|---|
object | Object |
object.cacheStrategy? | CacheStrategies |
object.feedObject? | SCFeedObjectType |
object.feedObjectType? | SCFeedObjectTypologyType |
object.id? | string | number |
Returns
Object
Name | Type |
---|---|
error | string |
obj | SCFeedObjectType | SCFeedDiscussionType | SCFeedPostType |
setObj | Dispatch <SetStateAction <SCFeedObjectType | SCFeedDiscussionType | SCFeedPostType >> |