• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alessiofrittoli / react-hooks / 15929146635

27 Jun 2025 02:48PM UTC coverage: 100.0%. Remained the same
15929146635

Pull #35

github

alessiofrittoli
docs: update `useMediaQuery` API Reference
Pull Request #35: feature/useMediaQuery-improvements

162 of 162 branches covered (100.0%)

Branch coverage included in aggregate %.

11 of 11 new or added lines in 1 file covered. (100.0%)

331 of 331 relevant lines covered (100.0%)

12.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/browser-api/useIsPortrait.ts
1
import { useMediaQuery } from './useMediaQuery'
3✔
2
import { portraitMediaQuery } from '@alessiofrittoli/web-utils/device'
3✔
3

4
/**
5
 * Check if device is portrait oriented.
6
 * 
7
 * State get updated when device orientation changes.
8
 *
9
 * @returns        `true` if the device is portrait oriented, `false` otherwise.
10
 */
11
export const useIsPortrait = () => useMediaQuery( portraitMediaQuery )
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc