UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

7 lines (5 loc) 266 B
import { pullFromCache } from '~/cache/api'; export const getStoryCache = (storyId: Amity.Story['storyId'] | undefined) => { if (!storyId) return { data: undefined, cachedAt: undefined }; return pullFromCache<Amity.InternalStory>(['story', 'get', storyId]); };