eui
eui copied to clipboard
[EuiDataGrid] shows a warning in the test environment
Describe the bug Investigate this codesanbox. When running the test, it shows this warning:
The two conditions to reproduce it is to:
- have this prop passed:
rowHeightsOptions: {
defaultHeight: {
lineCount: 5,
},
},
- (this is weirder) - add a
useEffectthat only rerenders the parent without changing the props of EuiDataGrid:
const [, setSth] = useState(() => {})
useEffect(() => {
setSth({})
}, [])
Without these two it cannot be reproduced.