Skip to content

Fix React Keys Issue in NewlineText Utility #603

Description

@shivanshiv

In Helpers.tsx, the NewlineText function uses array index as the key when mapping text lines. This causes React reconciliation issues when text changes. Replace array indices with stable, unique keys.

Hint: Consider using the text content itself or a hash of content as the key.

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