Skip to content

withI18n does not copy over static methods #166

@elios264

Description

@elios264

As stated in React docs when creating a HOC, you need to copy over the static methods,

Some of my components declare static properties, but they are undefined when using withI18n

This fix is simple, the only addition is to call hoistNonReactStatic over the hoisted and original component

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions