Skip to content

Use MediaQueryList.addListener(func) over window.addListener('resize', func) #1

Open
@elliottregan

Description

@elliottregan

There is a better API for handling media query changes:

https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions