UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

23 lines (22 loc) 605 B
import { SCEventType } from '@selfcommunity/types'; import { CacheStrategies } from '@selfcommunity/utils'; /** :::info This custom hook is used to fetch an event object. ::: * @param object * @param object.id * @param object.event * @param object.autosubscribe * @param object.cacheStrategy */ export default function useSCFetchEvent({ id, event, autoSubscribe, cacheStrategy, }: { id?: number | string; event?: SCEventType; autoSubscribe?: boolean; cacheStrategy?: CacheStrategies; }): { scEvent: SCEventType; setSCEvent: (e: SCEventType) => void; error: string; };