Skip to content

fix(data-grid): cell variants memo#1105

Merged
sadmann7 merged 1 commit intomainfrom
sadman/update-memo
Feb 4, 2026
Merged

fix(data-grid): cell variants memo#1105
sadmann7 merged 1 commit intomainfrom
sadman/update-memo

Conversation

@sadmann7
Copy link
Copy Markdown
Owner

@sadmann7 sadmann7 commented Feb 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 4, 2026 07:46
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tablecn Building Building Preview Feb 4, 2026 7:46am

Request Review

@sadmann7 sadmann7 merged commit 643955f into main Feb 4, 2026
8 of 9 checks passed
@sadmann7 sadmann7 deleted the sadman/update-memo branch February 4, 2026 07:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the SelectCell and MultiSelectCell components by wrapping the options extraction logic in React.useMemo to prevent unnecessary array re-creation on every render.

Changes:

  • Added memoization to the options array extraction in both SelectCell and MultiSelectCell components
  • Updated the corresponding registry file to reflect the source code changes

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/components/data-grid/data-grid-cell-variants.tsx Wrapped options extraction in React.useMemo for SelectCell (lines 876-879) and MultiSelectCell (lines 1023-1026) to optimize performance
public/r/data-grid.json Updated the content field to match the source file changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants