Skip to content

Commit b1e21d9

Browse files
committed
fixed issue, component would only update when copy changes
1 parent a8f4d42 commit b1e21d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ export default class Markdown extends Component {
104104
return true;
105105
}
106106

107+
if (
108+
nextProps.renderer !== this.props.renderer ||
109+
nextProps.style !== this.props.style ||
110+
nextProps.plugins !== this.props.plugins ||
111+
nextProps.rules !== this.props.rules ||
112+
nextProps.markdownit !== this.props.markdownit
113+
) {
114+
return true;
115+
}
116+
107117
return false;
108118
}
109119

0 commit comments

Comments
 (0)