MCPcopy
hub / github.com/lit/lit / _updated

Method _updated

packages/react/src/use-controller.ts:89–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87
88 /* @internal */
89 _updated() {
90 this._updatePending = false;
91 const resolve = this._resolveUpdate;
92 // Create a new updateComplete Promise for the next update,
93 // before resolving the current one.
94 this._updateCompletePromise = new Promise((res, _rej) => {
95 this._resolveUpdate = res;
96 });
97 this._controllers.forEach((c) => c.hostUpdated?.());
98 resolve(this._updatePending);
99 }
100}
101
102/**

Callers 1

useControllerFunction · 0.95

Calls 2

hostUpdatedMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected