Closed chownces closed 2 months ago
Separately, even though https://www.npmjs.com/package/react-responsive is still maintained, Mantine Hooks also provides useMediaQuery
- mantine's implementation looks a lot cleaner
Yes, not to mention it can also replicate the old behavior by simply defining a Hotkeys
HOC with getHotkeyHandler
from @mantine/hooks
.
Also, it has a special key mod
(modifier) that translates to ctrl
on Windows and cmd
on macOS automatically.
Marking this as important as I feel we should try to minimise our dependencies as much as possible before migrating to Vite (which is also marked "important").
Separately, even though https://www.npmjs.com/package/react-responsive is still maintained, Mantine Hooks also provides
useMediaQuery
Let's track this in a separate issue: #2967
Issue:
Suggestions:
Initial thoughts: