-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Using TableView at 90% zoom level triggers a re-render loop and errors #5357
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
Some notes from digging:
EDIT: Second issue specifically introduced with the changes made in this file |
Thanks @LFDanLu for noting the difference in errors. I have finally been able to reproduce the error on initial load of the table which is the first issue you noted. I can confirm that bringing that change in does fix the issue locally for me. |
We are experiencing this issue as well when TableView has |
@bmingles Does your ActionBarContainer have a static height or a variable height? |
Provide a general summary of the issue here
This issue may be 2 different errors, see here.
Original issue here:
When using the TableView component without a
height
it can sometimes cause a re-render loop which React catches and throws an error.You can see this behavior in this example: https://codesandbox.io/s/react-spectrum-table-react-error-185-hx7vsw?file=/src/App.js
In that example it is erroring upon filter but we have many reports of customers not even being able to render the table at all. It must be some combination of data within the table, browser, and window size because we cannot replicate the error being thrown in that case.
The CodeSandbox is a typical use case for us using TableViews. We do not set a
height
ormaxHeight
because we want the tables to expand and contract depending on the row count and height. Setting amaxHeight
would work for us, but we have confirmed that maxHeight alone does not prevent this error from being thrown.🤔 Expected Behavior?
The table does not throw an error when height or maxHeight are missing.
😯 Current Behavior
It throws an error and crashes the application, or throws an error in an Error Boundary if one is used.
💁 Possible Solution
Applying a
height
to the TableView fixes it, but in doing so degrades our user experience.🔦 Context
No response
🖥️ Steps to Reproduce
Reproduction steps are listed in the following: https://codesandbox.io/s/react-spectrum-table-react-error-185-hx7vsw?file=/src/App.js
Version
3.31.0
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
If other, please specify.
No response
What operating system are you using?
OSX
🧢 Your Company/Team
Adobe/Admin Console
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: