Skip to content

Connect Component's displayName is not working properly #1652

Closed
@myNameIsDu

Description

@myNameIsDu

Wrong name for the component that was packaged with Connect in React - Developer-Tools
image
I think that's the problem

// If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.
    const Connect = pure ? React.memo(ConnectFunction) : ConnectFunction

    Connect.WrappedComponent = WrappedComponent
    Connect.displayName = displayName

Displayname should be a property in the connectFunction
Like this

    ConnectFunction.displayName=displayName

image

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