MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / onStateUpdate

Method onStateUpdate

src/components/loading-screen/index.ts:36–42  ·  view source on GitHub ↗
(property: string, oldValue: unknown, newValue: unknown)

Source from the content-addressed store, hash-verified

34 }
35
36 override async onStateUpdate (property: string, oldValue: unknown, newValue: unknown) {
37 super.onStateUpdate(property, oldValue, newValue);
38
39 if (property === 'progress') {
40 this.content('progress').value(newValue as string);
41 }
42 }
43
44 override async onPropsUpdate (property: string, _oldValue: unknown, newValue: unknown) {
45 if (property === 'max') {

Callers

nothing calls this directly

Calls 1

contentMethod · 0.45

Tested by

no test coverage detected