-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
At the moment, we can do useBreakpoint('md lg'). Instead we should support useBreakpoint(['md', 'lg'])
It would be a bit more performant as we wouldn't have to do the split every time
The issue with using an array is that it'd bust the react cache at each re-render when used in an inline way
| const mediaQuery = React.useMemo(() => toMediaQuery(on), [toMediaQuery, on]); |
Metadata
Metadata
Assignees
Labels
No labels