Open vuphan365 opened 2 months ago
@inovua/reactdatagrid-community
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:
Header
componentWillUnmount
this.cells
null
What happened:
[]
Sandbox:
Suggested solution:
componentWillUnmount() { this.cells = []; this.unlockedCells = []; }
@inovua/reactdatagrid-community
: 5.10.2Relevant code or config https://github.com/inovua/reactdatagrid/blob/4f774402b5852c6016188a52a9ef71a14b7dc61e/community-edition/Layout/ColumnLayout/HeaderLayout/Header/index.js#L151
What you did:
Header
component will callcomponentWillUnmount
to resetthis.cells
values to benull
What happened:
this.cells
is never change values back to array ([]
) after re-mount, it will throw the error whenever call any methods from this variableSandbox:
Suggested solution:
this.cells
to null, we can set it to be[]