We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3729f commit d3bceb5Copy full SHA for d3bceb5
src/Graph.js
@@ -49,6 +49,7 @@ class Graph extends React.Component {
49
this.pendingUpdate = false;
50
this.rendering = false;
51
this.prevFit = null;
52
+ this.prevEngine = null;
53
this.prevDotSrc = '';
54
}
55
@@ -91,7 +92,7 @@ class Graph extends React.Component {
91
92
if (this.props.dotSrc.length === 0) {
93
return;
94
- if (this.props.dotSrc === this.prevDotSrc) {
95
+ if (this.props.dotSrc === this.prevDotSrc && this.props.engine === this.prevEngine) {
96
97
98
if (this.rendering) {
@@ -111,6 +112,7 @@ class Graph extends React.Component {
111
112
this.prevFit = this.props.fit;
113
114
this.prevDotSrc = this.props.dotSrc;
115
+ this.prevEngine = this.props.engine;
116
try {
117
this.prelDotGraph = new DotGraph(this.props.dotSrc);
118
0 commit comments