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

alessiofrittoli / react-hooks / 15086852160

17 May 2025 04:03PM UTC coverage: 100.0%. Remained the same
15086852160

Pull #33

github

alessiofrittoli
docs: updated `useInView` API Reference
Pull Request #33: feature/useInView-improvements

157 of 157 branches covered (100.0%)

Branch coverage included in aggregate %.

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

324 of 324 relevant lines covered (100.0%)

12.29 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