Skip to content

Static Filter Data Not Optimized with useMemo – Potential Performance Concern #25

@Jayanth-Rookie

Description

@Jayanth-Rookie

While reviewing the code, I noticed that static arrays like roomTypes, priceRange, and sortOptions are being redefined on every render within the component. This isn't ideal, as it can lead to unnecessary re-renders and memory usage.

If u assign this i will start working on this

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