Commit 3ec798f
committed
fix(useMediaQuery): remove asymmetric addListener/removeListener fallback in unsubscribe
createQueryEntry uses addEventListener unconditionally, but
queryUnsubscribe still had a removeEventListener/removeListener
fallback. This asymmetry is unnecessary since all supported
browsers now have addEventListener on MediaQueryList.1 parent 9719684 commit 3ec798f
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
| |||
0 commit comments