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

Function useFeedListVariables

packages/shared/src/hooks/feed/useFeeds.ts:67–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65};
66
67export const useFeedListVariables = (): ShellStateVariables => {
68 const { user } = useAuthContext();
69 const { isOnboardingComplete } = useOnboardingActions();
70
71 const { value: feedChipsVariant } = useConditionalFeature({
72 feature: featureFeedChips,
73 shouldEvaluate: !!user,
74 });
75
76 const isTagChipFeedsSeeded = !!user?.flags?.tagChipFeedsSeededAt;
77
78 return useMemo(
79 () =>
80 getFeedListVariables({
81 feedChipsVariant,
82 isOnboardingComplete,
83 isTagChipFeedsSeeded,
84 }),
85 [feedChipsVariant, isOnboardingComplete, isTagChipFeedsSeeded],
86 );
87};
88
89export const getFeedListQueryKey = (
90 user: Pick<LoggedUser, 'id'> | undefined,

Callers 2

ShellStateRequestFunction · 0.90
useFeedsFunction · 0.85

Calls 4

useAuthContextFunction · 0.90
useOnboardingActionsFunction · 0.90
useConditionalFeatureFunction · 0.90
getFeedListVariablesFunction · 0.85

Tested by

no test coverage detected