We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import React from 'react' import ReactDOM from 'react-dom/client' import { ListColumn, ListTable } from '@visactor/react-vtable' ReactDOM.createRoot(document.getElementById('root')!).render( <React.StrictMode> <div style={{ height: '500px' }}> <ListTable records={new Array(10).fill(['John', 18, 'male', '🏀'])}> <ListColumn field={'0'} caption={'name'} /> <ListColumn field={'1'} caption={'age'} /> <ListColumn field={'2'} caption={'gender'} /> <ListColumn field={'3'} caption={'hobby'} /> </ListTable> </div> </React.StrictMode>, )
This throws Uncaught TypeError: Cannot read properties of null (reading 'optionFromChildren')
Uncaught TypeError: Cannot read properties of null (reading 'optionFromChildren')
Without React.StrictMode or use option instead it works properly.
React.StrictMode
option
<React.StrictMode> <ListTable> <ListColumn /> </ListTable> </React.StrictMode>
The text was updated successfully, but these errors were encountered:
fix: fix react-vtable display error in react strict mode #990
a53140f
33f75c9
Rui-Sun
No branches or pull requests
What problem does this feature solve?
This throws
Uncaught TypeError: Cannot read properties of null (reading 'optionFromChildren')
Without
React.StrictMode
or useoption
instead it works properly.What does the proposed API look like?
The text was updated successfully, but these errors were encountered: