We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e04f3a commit 7303a4fCopy full SHA for 7303a4f
src/ReactFC.js
@@ -4,6 +4,7 @@ import * as utils from './utils/utils';
4
import fusionChartsOptions from './utils/options';
5
6
class ReactFC extends React.Component {
7
+ initialUnmount = false;
8
static fcRoot(core, ...modules) {
9
modules.forEach(m => {
10
if ((m.getName && m.getType) || (m.name && m.type)) {
@@ -35,7 +36,8 @@ class ReactFC extends React.Component {
35
36
}
37
38
componentWillUnmount() {
- this.chartObj.dispose();
39
+ if (!this.initialUnmount) this.initialUnmount = true;
40
+ else this.chartObj.dispose();
41
42
43
detectChanges(nextProps) {
0 commit comments