I have forked and cloned the repository to take a look at the 'useMedia' hook and I noticed that we're using methods matchMedia() .addListener() and matchMedia() .removeListener() which are deprecated.
Shouldn't we replace them with methods addEventListener() and removeEventListener()?
I have forked and cloned the repository to take a look at the 'useMedia' hook and I noticed that we're using methods matchMedia() .addListener() and matchMedia() .removeListener() which are deprecated.
Shouldn't we replace them with methods addEventListener() and removeEventListener()?