update graphs on new data
parent
1286f90444
commit
abbc68a6b0
|
@ -60,9 +60,8 @@
|
|||
"stream-selector": "^0.1.1",
|
||||
"streamsaver": "^1.0.1",
|
||||
"thyming": "^0.1.1",
|
||||
"vega": "^5.3.4",
|
||||
"vega-lite": "^3.0.0",
|
||||
"vega-tooltip": "^0.4.0"
|
||||
"vega": "^5.0.0",
|
||||
"vega-lite": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.6.2",
|
||||
|
|
|
@ -192,7 +192,9 @@ export default class CanGraph extends Component {
|
|||
if (!this.view) {
|
||||
return true;
|
||||
}
|
||||
if (this.state.spec !== nextState.spec) {
|
||||
if (this.props.messages !== nextProps.messages || this.props.plottedSignal !== nextProps.plottedSignal ||
|
||||
this.segmentIsNew(nextProps.segment) || this.state.spec !== nextState.spec)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (this.state.data !== nextState.data) {
|
||||
|
|
Loading…
Reference in New Issue