brackt/app/hooks
Chris Parsons f6fe3815cb fix: eliminate queue tab flash on mobile by using useSyncExternalStore
useMediaQuery initialized to false and updated in useEffect, causing a
paint where isMobile was false on mobile devices. This rendered the
desktop layout first, hiding the queue tab until the effect fired.

useSyncExternalStore reads matchMedia synchronously on the client so
the correct layout is used on the first render with no extra paint.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 09:20:17 -08:00
..
__tests__ fix: fully sync local draft state after socket reconnection (#41) 2026-02-27 22:50:46 -08:00
useDraftNotifications.ts Add browser push notifications toggle to draft page (#11) 2026-02-20 19:30:53 -08:00
useDraftSocket.ts Fix draft state not updating when returning from backgrounded mobile app (#39) 2026-02-25 09:36:52 -08:00
useMediaQuery.ts fix: eliminate queue tab flash on mobile by using useSyncExternalStore 2026-02-28 09:20:17 -08:00