Redux TypeError: Cannot read property 'apply' of undefined
Update your redux dev tools from 2.16.0 to 2.16.1
OR
Remove this line from your code
window.__REDUX_DEVTOOLS_EXTENSION__&& window.__REDUX_DEVTOOLS_EXTENSION__()
I had this same issue when I wanted to test my web app on an incognito window (extensions don't show up on incognito windows).
The issue is that compose
from redux
expects all its arguments to be functions. So when
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
is evaluated in that environment it returns a boolean.
As @knutwalker mentioned. You'd need to return a function that returns nothing. This fixed it for me,
window.__REDUX_DEVTOOLS_EXTENSION__
? window.__REDUX_DEVTOOLS_EXTENSION__()
: f => f