MCPcopy Create free account
hub / github.com/EasyWebApp/WebCell / #boot

Method #boot

source/decorator.tsx:55–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 };
54
55 #boot() {
56 const names: string[] = this.constructor['observedAttributes'] || [],
57 reactions = reactionMap.get(this) || [];
58
59 this.disposers.push(
60 ...names.map(name => autorun(() => this.syncPropAttr(name))),
61 ...reactions.map(({ expression, effect }) =>
62 watch(reaction => expression(this, reaction), effect.bind(this))
63 )
64 );
65 }
66
67 disconnectedCallback() {
68 for (const disposer of this.disposers) disposer();

Callers 1

constructorMethod · 0.95

Calls 1

syncPropAttrMethod · 0.95

Tested by

no test coverage detected