Skip to content

[Bug] Use stable keys for Most Viewed Articles list rendering #990

Description

@SB2318

Followed By PR #972

You can check Gemini Guidance

Description

The Card components inside ActivityOverview.tsx were using array indices as React key values.

React recommends using stable identifiers for list rendering to improve reconciliation and prevent unnecessary UI issues.

Impact

  • Potential UI glitches
  • Incorrect component state retention
  • Performance degradation during list updates

Expected Fix

  • Replace index-based keys with stable identifiers:
    • item.pb_recordId
    • fallback to item._id

Labels

bug react frontend medium-priority

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions