Skip to content

dynamic context type names fail the whole file #317

@giladv

Description

@giladv

3.X

dynamic context type names fail the whole file

static contextTypes = {
    [DYNAMIC_NAME]: ...
}
TypeError: Property name must be an Identifier or a Literal

why fail the entire file?
a warning + moving to the next prop/context type should be the way to go.

thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions