Skip to content

Displaying an Error when hasFocus is defined in component state #35

@suresh-gangumalla

Description

@suresh-gangumalla

The hasFocus property is automatically injected into the component state by the framework and is internally handled by Blits. To prevent unintended overrides, developers must avoid manually declaring hasFocus in the component's state configuration.

we should have a validation mechanism that detects any explicit declaration of the hasFocus key in component state definitions and trigger descriptive error.

state() {
 hasFocus: false/ true/ 1/ 0
}

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