Skip to content

render() method missing override modifier in ToastManagerComponent #83

@IceQ1337

Description

@IceQ1337

The render() function in ToastManagerComponent lacks the explicit override keyword. While this is optional in standard TypeScript configurations, it triggers an error in projects where noImplicitOverride is enabled in tsconfig.json.

As described by the docs, using the override modifier is a best practice for class-based components as it ensures the method remains in sync with the base class (in this case React Component).

render() {
const { isVisible, position, useModal } = this.state;

should become:

  override render() {
    const { isVisible, position, useModal } = this.state;

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