(prevProps: MarkdownProps)
| 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; |
nothing calls this directly
no test coverage detected