Skip to content

Commit 035c98d

Browse files
committed
have Plotly.react diff _fullInput instead of the final trace
1 parent 16a22f3 commit 035c98d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/plot_api/plot_api.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -2429,8 +2429,14 @@ function diffData(gd, oldFullData, newFullData, immutable) {
24292429
gd: gd
24302430
};
24312431

2432+
2433+
var seenUIDs = {};
2434+
24322435
for(i = 0; i < oldFullData.length; i++) {
2433-
trace = newFullData[i];
2436+
trace = newFullData[i]._fullInput;
2437+
if(seenUIDs[trace.uid]) continue;
2438+
seenUIDs[trace.uid] = 1;
2439+
24342440
diffOpts.autoranged = trace.xaxis ? (
24352441
Axes.getFromId(gd, trace.xaxis).autorange ||
24362442
Axes.getFromId(gd, trace.yaxis).autorange

0 commit comments

Comments
 (0)