Skip to content

Memoize groupActivitiesByDate in the social ActivityFeed #977

Description

@RUKAYAT-CODER

Overview
groupActivitiesByDate(activities) at src/components/social/ActivityFeed.tsx:42 runs on every render (including each scroll-triggered loadMore), re-grouping the entire growing activity list without useMemo. The cost scales with feed size on every re-render. Wrap it in useMemo keyed on activities.

Metadata

Metadata

Assignees

No one assigned

    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