inovua / reactdatagrid

Empower Your Data with the best React Data Grid there is
https://reactdatagrid.io
Other
3.45k stars 57 forks source link

πŸ› Bug: Cannot read properties of null (reading 'filter' or reading 'push') with createRoot - react@18 #416

Open vuphan365 opened 2 months ago

vuphan365 commented 2 months ago

Relevant code or config https://github.com/inovua/reactdatagrid/blob/4f774402b5852c6016188a52a9ef71a14b7dc61e/community-edition/Layout/ColumnLayout/HeaderLayout/Header/index.js#L151

 componentWillUnmount() {
      this.cells = null;
      this.unlockedCells = null;
  }

What you did:

What happened:

Screenshot 2024-04-09 at 21 57 25

Sandbox:

Suggested solution: