Skip to content

Version 7: Connected components are objects instead functions #1223

@radeno

Description

@radeno

With react-redux 6 connected component was returned as function. eg:

ƒ Connect(props)

Instead version 7 returns it as object because react hooks:

{$$typeof: Symbol(react.memo), type: ƒ, compare: null, WrappedComponent: ƒ, displayName: "Connect(Component)", …}

I think this should be noted for developers with PropTypes module for type checking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions