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 f437fd7 commit 2742d0bCopy full SHA for 2742d0b
src/factory.js
@@ -66,13 +66,6 @@ export default function plotComponentFactory(Plotly) {
66
this.handleUpdateWithProps = this.handleUpdateWithProps.bind(this);
67
}
68
69
- shouldComponentUpdate(nextProps) {
70
- return (
71
- nextProps.revision === void 0 ||
72
- nextProps.revision !== this.props.revision
73
- );
74
- }
75
-
76
componentDidMount() {
77
this.p = this.p
78
.then(() => {
@@ -96,6 +89,17 @@ export default function plotComponentFactory(Plotly) {
96
89
97
90
98
91
componentWillUpdate(nextProps) {
92
+ if (
93
+ (nextProps.revision !== void 0 &&
94
+ nextProps.revision === this.props.revision) ||
95
+ (nextProps.layout === this.props.layout &&
+ nextProps.data === this.props.data &&
+ nextProps.config === this.props.config &&
+ nextProps.frames === this.props.frames)
99
+ ) {
100
+ return;
101
+ }
102
+
103
104
105
if (hasReactAPIMethod) {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments