Closed mongris closed 2 years ago
Im use useEvt in my react app to listening every DOM events. But it throw exception with follow code:
const mql = window.matchMedia('(max-width: 600px)') useEvt( ctx => { Evt.from(ctx, mql, 'change').attach(...) }, [] )
Will Evt support MediaQueryList event?
Ok yes I'll add support for it!
@mongris , This is fixed in 2.4.1, thanks for reporting.
Im use useEvt in my react app to listening every DOM events. But it throw exception with follow code:
Will Evt support MediaQueryList event?