Skip to main content

hooks/useSCFetchFeedObject

Functions

useSCFetchFeedObject()

useSCFetchFeedObject(object): object

info

This custom hook is used to fetch a feed object.

Parameters

ParameterTypeDescription
objectobject*
object.cacheStrategy?CacheStrategies
object.feedObject?SCFeedObjectType*
object.feedObjectType?DISCUSSION | POST | STATUS*
object.id?string | number*

Returns

object

MemberTypeValue
errorstring-
objSCFeedObjectType | SCFeedDiscussionType | SCFeedPostType-
setObj(newObj) => void...

Source

packages/react-core/src/hooks/useSCFetchFeedObject.ts:19