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
Whoops I left out the first argument for remove removeEventListener. It should be window.removeEventListener('resize', handler) instead. This is now fixed in the code example.
After changing a route (e.g. from '/' to '/items') the following error is thrown:
TypeError: Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only 1 present.
I'm using CRA 2 and react-router.
The text was updated successfully, but these errors were encountered: