MCPcopy Index your code
hub / github.com/pyscript/pyscript / connectedCallback

Method connectedCallback

core/src/core.js:344–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 super.id = value;
343 }
344 async connectedCallback() {
345 if (!this.executed) {
346 this.executed = true;
347 const isAsync = !isSync(this);
348 const { io, run, runAsync } = await this._wrap.promise;
349 this.srcCode = await fetchSource(
350 this,
351 io,
352 !this.childElementCount,
353 );
354 this.replaceChildren();
355 this.style.display = "block";
356 dispatch(this, TYPE, "ready");
357 dispatchDone(
358 this,
359 isAsync,
360 (isAsync ? runAsync : run)(this.srcCode),
361 );
362 }
363 }
364 },
365 );
366 });

Callers

nothing calls this directly

Calls 2

fetchSourceFunction · 0.85
dispatchDoneFunction · 0.85

Tested by

no test coverage detected