Skip to content

Avoid map().reverse() clone and index keys in VersionControl timeline #970

Description

@RUKAYAT-CODER

Overview
In src/components/cms/VersionControl.tsx history.map(...).reverse() (lines 24-85) builds and reverses a full element array each render, and each row uses key={index} (line 30) which breaks reconciliation when history entries shift. Reverse the data once (memoized) and use stable ids as keys.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions