next: Refactor is-mobile
hook to use new MediaQuery
class
#1615
Labels
type: feature
Introduction of new functionality to the application
Prerequisites
Describe the feature
Hey, since the Svelte team added the
MediaQuery
class, theIsMobile
hook is now somewhat redundant.To keep compatibility with all dependent components, I suggest extending the
MediaQuery
class:Notice that this might be a breaking change for users refusing to update their dependencies.
But since
next
is stillnext
and notmain
, this change is acceptable in my opinion.The text was updated successfully, but these errors were encountered: