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
crashes redux with Uncaught TypeError: Cannot read property 'apply' of undefined, because second argument to compose (second enhancer) is undefined.
What is the expected behavior?
Would be good if some enhancer is undefined not to crash, but to continue to operate as if this argument was not provided to compose.
(Not sure if this means the change of compose or the change of createStore)
Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?
Redux version: 4.0.1
OS+Browser: Windows 10 + Chrome 75, Ubuntu 18 + Chrome 75, Windows 10 + IE
The text was updated successfully, but these errors were encountered:
We actually specifically removed this way back in #2167. The determination was it is better to fail than to silently continue to execute. We want to know when the store configuration isn't what we expect.
From what I see compose does not fail when undefined is given as an argument. The application should fail at this point saying "an argument is not a function" or something? I think this was the intention of discussion in #2167 ?
Where the application fails is during createStore. And it fails with a non helpful error of "Cannot read property 'apply' of undefined".
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
For example when "Redux devtools" are not installed in the browser this code:
crashes redux with
Uncaught TypeError: Cannot read property 'apply' of undefined
, because second argument to compose (second enhancer) is undefined.What is the expected behavior?
Would be good if some enhancer is undefined not to crash, but to continue to operate as if this argument was not provided to compose.
(Not sure if this means the change of
compose
or the change ofcreateStore
)Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?
Redux version: 4.0.1
OS+Browser: Windows 10 + Chrome 75, Ubuntu 18 + Chrome 75, Windows 10 + IE
The text was updated successfully, but these errors were encountered: