You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()?
The text was updated successfully, but these errors were encountered:
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()?
The text was updated successfully, but these errors were encountered: