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

Function useJobsFeature

packages/shared/src/hooks/useJobsFeature.ts:7–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5} from '../components/GrowthBookProvider';
6
7export const useJobsFeature = (): {
8 isJobsEnabled: boolean;
9 isLoading: boolean;
10} => {
11 const value = useFeature(featureJobsUI);
12 const { ready } = useFeaturesReadyContext();
13 const isLoading = !ready;
14
15 return {
16 // Keep this as the resolved flag value. Route gates can choose to render
17 // optimistically while `isLoading`; passive UI should treat unknown as off.
18 isJobsEnabled: !!value,
19 isLoading,
20 };
21};

Callers 15

InAppNotificationsTabFunction · 0.90
EmailNotificationsTabFunction · 0.90
OpportunityEntryButtonFunction · 0.90
BootPopupsFunction · 0.90
HeaderFunction · 0.90
useAccountPageItemsFunction · 0.90
SidebarTabletFunction · 0.90
useSidebarShortcutItemsFunction · 0.90
SettingsPanelSectionFunction · 0.90
RecentSectionFunction · 0.90
ProfileSectionFunction · 0.90
HomepageTopBannersFunction · 0.90

Calls 2

useFeatureFunction · 0.90
useFeaturesReadyContextFunction · 0.90

Tested by

no test coverage detected