Fails after upgrading to v6.9.0 or later
See original GitHub issueUsing v6?
Yes
Using v7?
No. However, tried with v7.0.0-alpha.2
, and this issue exists.
Describe the bug
When updating from v6.8.6
to v6.9.0
, pages with react-table
fails with following error,
Cell(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
Update (2019 Mar 11):
Further investigation suggests that, this error appears if one or more data fields required in react-table
column list are missing.
Example, assume a table that renders columns id
and line
. If the JSON data fed into table has entries where either id
or line
key-value pairs are missing, entire rendering process fails with above error.
v6.8.6
and prior were able to render empty column/cell fields, if relevant data is unavailable. It seems, this safe guard is unavailable from v6.9.0
onwards.
To Reproduce Steps to reproduce the behavior:
- Prepare a working
React
app withreact-table
(v6.8.6
) - Implement a page with working table
- Install newer
react-table
version,v6.9.0
or higher usingnpm
- Try to access page implemented in step 2
- See error, should be as or similar to screenshot below
Expected behavior
Should work flawlessly as in react-table
v6.8.6
.
Codesandbox!
Update (2019 Mar 11): Code sample to re-produce this bug is now available here.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Google Chrome
- Version:
v72
and above
Smartphone (please complete the following information): N.A.
Additional context N.A.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10
I’m doing that right now actually. I plan on releasing a 6.10.0 that is a rollback + some cherry picked commits that are stable.
@tannerlinsley you could publish a 6.9.1 that is a rollback to 6.8.6 so that everyone is fixed, not just the people reporting the issue