Skip to content

Stabilize the ID (key) generation #7

@cchirag

Description

@cchirag

Currently, the framework uses the filename and the line number to generate the ID/key for a given component. This works, but does not guarantee stability across rerenders if we introduce hot module replacement. Consider a scenario where I just added a new hook which shifted the component's code by 2 lines, the new ID of the component is completely different from the old one because of its dependency with the line number.

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