media-query: "addEventListener is not a function" on Safari 13 and below
underyx opened this issue · 1 comments
underyx commented
We got several Sentry error reports of useMediaQuery
failing on the query.addEventListener("change", ...)
line with a e.addEventListener is not a function
error. All these reports are from Safari 13 or older.
MDN does mention a compatibility note for this function for Safari https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList#browser_compatibility
underyx commented
My bad, so sorry about the noise. The error is not coming from this library.