eui icon indicating copy to clipboard operation
eui copied to clipboard

[EuiDataGrid] shows a warning in the test environment

Open mbondyra opened this issue 1 year ago • 0 comments

Describe the bug Investigate this codesanbox. When running the test, it shows this warning:

Screenshot 2024-04-15 at 13 58 15

The two conditions to reproduce it is to:

  1. have this prop passed:
 rowHeightsOptions: {
    defaultHeight: {
      lineCount: 5,
    },
  },
  1. (this is weirder) - add a useEffect that only rerenders the parent without changing the props of EuiDataGrid:
  const [, setSth] = useState(() => {})
  useEffect(() => {
    setSth({})
  }, [])

Without these two it cannot be reproduced.

mbondyra avatar Apr 15 '24 12:04 mbondyra