MCPcopy Create free account
hub / github.com/dailydotdev/apps / useCustomFeed

Function useCustomFeed

packages/shared/src/hooks/feed/useCustomFeed.ts:8–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8export const useCustomFeed = (): UseCustomFeed => {
9 const feedContextData = useActiveFeedContext();
10 const { queryKey: feedQueryKey } = feedContextData;
11 const isCustomFeed = feedQueryKey?.[0] === 'custom';
12 const customFeedId = isCustomFeed ? (feedQueryKey?.[2] as string) : undefined;
13
14 return {
15 feedId: isCustomFeed ? customFeedId : undefined,
16 isCustomFeed,
17 };
18};

Callers 4

PostTagsPanelFunction · 0.90
PostHiddenPanelFunction · 0.90
useFollowPostTagsFunction · 0.90
useHidePostFunction · 0.90

Calls 1

useActiveFeedContextFunction · 0.90

Tested by

no test coverage detected