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
Sorry, we don't support or recommend using connect as a decorator. If it works, that's great, but it's not an intentionally supported use case since the decorator spec and plugins continue to change.
version: "react-redux": "6.0.1"
It Error:
@connect(mapStateToProps,mapDispatchToProps,null,{ forwardRef: true }) Component export default Component
It Correct:
export default connect(mapStateToProps,mapDispatchToProps,null,{ forwardRef: true })(Component)
Error Message:
Expected a constructor
Why?
The text was updated successfully, but these errors were encountered: