You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
As complexity of the admin grows, more media queries are being used. Most modern browsers can handle the increase in media query processing without issue, however Safari has a noticeable slowdown (Shopifolk; DM me for a video of the issue).
There are a number of places where components are rendered in a loop which contain a useMedia/useMediaLayout call:
Since the queries themselves are often identical, it would be possible to attach only a single event listener per query in which to trigger the state update from. Testing of this approach in Polaris has shown positive results without regression.
Consuming repo
What repo were you working in when this issue occurred?