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 5370feb commit 2ded8ebCopy full SHA for 2ded8eb
src/factory.js
@@ -68,12 +68,10 @@ export default function plotComponentFactory(Plotly) {
68
}
69
70
shouldComponentUpdate(nextProps) {
71
- if (isNumeric(nextProps.revision) && isNumeric(this.props.revision)) {
72
- // If revision is numeric, then increment only if revision has increased:
73
- return nextProps.revision > this.props.revision;
74
- } else {
75
- return true;
76
- }
+ return (
+ nextProps.revision === void 0 ||
+ nextProps.revision !== this.props.revision
+ );
77
78
79
componentDidMount() {
0 commit comments