Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid Unnecessary Re-rendering of the componentsΒ #370

@shivasankaran18

Description

@shivasankaran18

Bug Report πŸ›

Expected Behavior

Components should re-render only when the props change

Current Behavior

Components are re-rendering unnecessarily when parent components update

Possible Solution

Implement React.memo() for optimization

Steps to Reproduce

  1. Open Chrome DevTools Performance tab
  2. Record performance while:
    • Resizing editor panels
    • Switching between samples
    • Scrolling through the page
  3. Observe unnecessary component re-renders in the React DevTools Profiler

Context (Environment)

Desktop

  • OS: Windows, macOS, Linux
  • Browser: Chrome, Firefox, Safari
  • React Version: 18.x

Detailed Description

The website currently has unnecessary re-renders

Possible Implementation

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