UNPKG

@amityco/ts-sdk

Version:

Amity Social Cloud Typescript SDK

19 lines 713 B
/** * ```js * import { FeedRepository } from '@amityco/ts-sdk' * * const unsub = FeedRepository.getForYouFeed(({ data, loading, error, hasNextPage, onNextPage }) => { * // render posts; call onNextPage() to load the next page (20 posts) * }) * ``` * * Observe the For You feed — a personalized, server-ranked * {@link Amity.LiveCollection} of {@link Amity.Post}. * * @param callback the function to call when new data is available * @returns an {@link Amity.Unsubscriber} function to stop observing * * @category Posts Live Collection */ export declare const getForYouFeed: (callback: Amity.LiveCollectionCallback<Amity.Post>) => Amity.Unsubscriber; //# sourceMappingURL=getForYouFeed.d.ts.map