MCPcopy Create free account
hub / github.com/ElemeFE/element-react / resolve

Method resolve

src/tree/model/node.js:342–353  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

340 this.loading = true;
341
342 const resolve = (children) => {
343 this.loaded = true;
344 this.loading = false;
345 this.childNodes = [];
346
347 this.doCreateChildren(children, defaultProps);
348
349 this.updateLeafState();
350 if (callback) {
351 callback.call(this, children);
352 }
353 };
354
355 this.store.load(this, resolve);
356 } else {

Callers 1

handleActionMethod · 0.80

Calls 2

doCreateChildrenMethod · 0.95
updateLeafStateMethod · 0.95

Tested by

no test coverage detected