-
Notifications
You must be signed in to change notification settings - Fork 103
[AnalyticalTable > Subcomponents]: VirtualTableBody tries to update AnalyticalTable during its render #6755
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
Comments
Hello, |
@Lukas742 Do you have an idea when this issue will be researched? |
Hi all, while the error is of course unintended, it doesn’t appear to break the implementation, which is why we initially treated this issue with low priority. However, if the component or application is crashing for you, or if you're experiencing any other unexpected behavior, please let us know. That said, I’ll try to prioritize the issue more. I’ve already taken a quick look at the root cause last week, but unfortunately, it doesn’t seem easy to resolve and will likely require significant refactoring effort. |
🎉 This issue has been resolved in version v2.11.0 🎉 The release is available on v2.11.0 Your semantic-release bot 📦🚀 |
Thank you @Lukas742 |
Describe the bug
On AnalyticalTable components with the
renderRowSubComponent
prop set, and thesubComponentsBehavior
prop set to"IncludeHeightExpandable"
I get the following error message when I collapse a table row for the first time:Note: This only happens the very first time you collapse a row since the last page load. Not even unmounting and remounting seems to trigger this error again. You have to refresh the page for the this error to occur again.
I also tried it with multiple AnalyticalTable components. The error seems to trigger the first time any of the tables rows is getting collapsed. It won't trigger on the other table anymore at that point.
Isolated Example
https://stackblitz.com/edit/github-ccdfvjhn?file=src%2FApp.tsx
Reproduction steps
AnalyticalTable
) while rendering a different component (VirtualTableBody
). To locate the bad setState() call insideVirtualTableBody
, follow the stack trace as described in https://react.dev/link/setstate-in-render"Expected Behaviour
No response
Screenshots or Videos
No response
UI5 Web Components for React Version
2.5.0
UI5 Web Components Version
2.5.0
Browser
Chrome, Edge, Firefox
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: