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 found an unexpected behavior when defining second argument received by mapDispatchToProps to have a default value.
The default value is always passed to it, even though other props are defined on the component.
I found an unexpected behavior when defining second argument received by
mapDispatchToProps
to have a default value.The default value is always passed to it, even though other props are defined on the component.
I created a test to demonstrate it: oskarhane@b0a2b89
If the default is removed:
let mapDispatchToProps = (d, p = {}) => {
tolet mapDispatchToProps = (d, p) => {
it works as expected.
The text was updated successfully, but these errors were encountered: