Skip to content

Storing components by 'displayName' make wrapping unavailable  #32

@mbektimirov

Description

@mbektimirov

In Moreartyjs we use text fields wrappers to render with requestAnimationFrame. React does not support setting displayName property directly into wrapped component (it throws Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs...)

So now hot loader claims it already have an undefined component:
Found duplicate displayName in DOM.js: "undefined". react-hot-loader uses displayName to distinguish between several components in one file.

Is it possible to generate component unique id and use it instead displayName?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions