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

Function useViewSizeClient

packages/shared/src/hooks/useViewSize.ts:57–67  ·  view source on GitHub ↗
(size: ViewSize)

Source from the content-addressed store, hash-verified

55};
56
57export const useViewSizeClient = (size: ViewSize): boolean => {
58 const check = useMediaClient(
59 [viewSizeToQuery[size].replace('@media ', '')],
60 [true],
61 false,
62 );
63
64 return useMemo(() => {
65 return reversedEvaluatedSizes.includes(size) ? !check : check;
66 }, [check, size]);
67};
68
69export { useViewSize };

Callers 9

FeedSettingsEditHeaderFunction · 0.90
useFeedSettingsEditFunction · 0.90
PostHeaderActionsFunction · 0.90
CoresLayoutFunction · 0.90
CoresPaymentPageFunction · 0.90
CorePageRendererFunction · 0.90
CoresPageFunction · 0.90
PageFunction · 0.90

Calls 2

useMediaClientFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected