Replies: 1 comment
-
|
Yes, you could use a resize observer. Or you could check in a useLayoutEffect if you don't need it to update or have state which tells you to update it. You could also use https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/change_event if you know the breakpoint. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! The Radio Group has an
orientationprop taking inhorizontalorvertical. I assume this is to help with keyboard navigation. However, what if I want ithorizontalfor my full-width layout butverticalon mobile? Do I need to do some sort of resize observer to change the value of theorientationprop?Beta Was this translation helpful? Give feedback.
All reactions