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

Method componentDidUpdate

packages/amis/src/renderers/Tasks.tsx:203–220  ·  view source on GitHub ↗
(prevProps: TaskProps)

Source from the content-addressed store, hash-verified

201 }
202
203 componentDidUpdate(prevProps: TaskProps) {
204 const props = this.props;
205
206 if (prevProps.items !== props.items) {
207 this.setState({
208 items: props.items ? props.items.concat() : []
209 });
210 } else if (
211 isApiOutdated(
212 prevProps.checkApi,
213 props.checkApi,
214 prevProps.data,
215 props.data
216 )
217 ) {
218 this.tick(true);
219 }
220 }
221
222 componentWillUnmount() {
223 clearTimeout(this.timer);

Callers

nothing calls this directly

Calls 2

tickMethod · 0.95
isApiOutdatedFunction · 0.90

Tested by

no test coverage detected