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

Function useIsPhoneLandscape

packages/shared/src/hooks/useViewSize.ts:83–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81};
82
83export const useIsPhoneLandscape = (): boolean => {
84 const check = useMediaClient(
85 [phoneLandscape.replace('@media ', '')],
86 [true],
87 false,
88 );
89
90 return !isExtension && !!check;
91};
92
93// The same answer read at once: a phone from its first render. It is true
94// on the server and can differ on a desktop's hydration render, so it is

Callers 3

ShellClusterFunction · 0.90
ShellFieldFunction · 0.90
usePostCapsulePositionFunction · 0.90

Calls 2

useMediaClientFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected