MCPcopy
hub / github.com/baidu/amis / componentDidUpdate

Method componentDidUpdate

packages/amis/src/renderers/Markdown.tsx:67–76  ·  view source on GitHub ↗
(prevProps: MarkdownProps)

Source from the content-addressed store, hash-verified

65 }
66
67 componentDidUpdate(prevProps: MarkdownProps) {
68 const props = this.props;
69 if (props.src) {
70 if (isApiOutdated(prevProps.src, props.src, prevProps.data, props.data)) {
71 this.updateContent();
72 }
73 } else {
74 this.updateContent();
75 }
76 }
77
78 async updateContent() {
79 const {name, data, src, env} = this.props;

Callers

nothing calls this directly

Calls 2

updateContentMethod · 0.95
isApiOutdatedFunction · 0.90

Tested by

no test coverage detected