Skip to content

Debounce and memoize the FollowingSystem search filter #978

Description

@RUKAYAT-CODER

Overview
src/components/social/FollowingSystem.tsx:70 recomputes users.filter(...).toLowerCase() on every keystroke and render with no useMemo or debounce, and the filtered list at line 117 is rendered unvirtualized, so large follower lists re-filter and fully re-render on each character typed. Debounce the query and memoize the filtered result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions