You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calling row.toggleExpanded(bool) triggers re-render even without state change #6136
And I realized that when the state is false, setting row.toggleExpanded(false) would not produce a changed UI, but it would still re-render the whole table.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
Do you intend to try to help solve this bug with your own PR?
No, because I do not have time to dig into it
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
I've submitted a fix for this in #6184. The root cause is that toggleExpanded calls table.setExpanded() unconditionally — even when the desired state matches the current state. The fix adds an early return that checks the current expanded state before proceeding, completely avoiding the unnecessary onExpandedChange callback.
Activity
coderabbitai commentedon Dec 18, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues
Related Issues
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord or schedule a call!
fix(table-core): skip state update in toggleExpanded when state is un…
isaackaara commentedon Mar 4, 2026
I've submitted a fix for this in #6184. The root cause is that
toggleExpandedcallstable.setExpanded()unconditionally — even when the desired state matches the current state. The fix adds an early return that checks the current expanded state before proceeding, completely avoiding the unnecessaryonExpandedChangecallback.fix: skip toggleExpanded when state already matches desired value
fix(table-core): correct expanded/paginated state contents and sortin…
fix(table-core): correct expanded/paginated state contents and sortin…