Summary
The useIsMobile hook must update when the viewport width crosses the 768px breakpoint. An integration test should confirm the hook's return value changes correctly when the viewport is resized in both directions.
Scope
- Render a component using
useIsMobile
- Mock viewport width at 500px and assert hook returns
true
- Resize mock to 1024px and assert hook returns
false
- Resize back to 600px and assert hook returns
true again
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The
useIsMobilehook must update when the viewport width crosses the 768px breakpoint. An integration test should confirm the hook's return value changes correctly when the viewport is resized in both directions.Scope
useIsMobiletruefalsetrueagainAcceptance Criteria
truebelow 768pxfalseat or above 768pxETA: 12 hours
Coordinate on Telegram