MCPcopy Create free account
hub / github.com/SplootCode/splootcode / setState

Function setState

packages/runtime-web/index.ts:17–23  ·  view source on GitHub ↗
(newState: FrameState)

Source from the content-addressed store, hash-verified

15}
16
17function setState(newState: FrameState) {
18 const isNew = state !== newState
19 state = newState
20 if (isNew) {
21 sendHeartbeat()
22 }
23}
24
25let serviceWorkerRegistration: ServiceWorkerRegistration
26const PARENT_TARGET_DOMAIN = process.env.EDITOR_DOMAIN

Callers 1

index.tsFile · 0.85

Calls 1

sendHeartbeatFunction · 0.85

Tested by

no test coverage detected