-
Notifications
You must be signed in to change notification settings - Fork 153
fix: prevent customize column hook from running on column resize #8640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prevent customize column hook from running on column resize #8640
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for ibm-products-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8640 +/- ##
=======================================
Coverage 82.01% 82.01%
=======================================
Files 403 403
Lines 18548 18548
Branches 4189 4189
=======================================
Hits 15212 15212
Misses 3336 3336
🚀 New features to boost your workflow:
|
szinta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidmenendez It seems this PR addresses only scenario 1, where customized columns addon is used with column resizing. For the second issue (Tagset with column resize) do we have a separate ticket for that, or was it overlooked? Just wanted to check.
|
@szinta yeah i haven't been able to replicate that locally yet, so i'm going to do that issue separately |
a6af0cb
Closes #8094
prevents the
useEffectinside ofCustomizeColumnsTearsheetfrom running when datagrid columns are being resized, which causes the app to crash from re-renders.CustomizeColumnsTearsheetisn't visible when the user is able to drag the column widths and shouldn't be affected by that interaction anyways.