MCPcopy
hub / github.com/typestyle/typestyle / _styleUpdated

Method _styleUpdated

src/internal/typestyle.ts:80–92  ·  view source on GitHub ↗

Checks if the style tag needs updating and if so queues up the change

()

Source from the content-addressed store, hash-verified

78
79 /** Checks if the style tag needs updating and if so queues up the change */
80 private _styleUpdated(): void {
81 const changeId = this._freeStyle.changeId;
82 const lastChangeId = this._lastFreeStyleChangeId;
83
84 if (!this._pendingRawChange && changeId === lastChangeId) {
85 return;
86 }
87
88 this._lastFreeStyleChangeId = changeId;
89 this._pendingRawChange = false;
90
91 this._afterAllSync(() => this.forceRenderStyles());
92 }
93
94 /**
95 * Insert `raw` CSS as a string. This is useful for e.g.

Callers 2

TypeStyleClass · 0.95
styleMethod · 0.95

Calls 1

_afterAllSyncMethod · 0.95

Tested by

no test coverage detected