MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / createWidgetRuntime

Function createWidgetRuntime

packages/widget-sdk/src/runtime-context.ts:59–67  ·  view source on GitHub ↗
(rt: RuntimeInput)

Source from the content-addressed store, hash-verified

57}
58
59export function createWidgetRuntime(rt: RuntimeInput): WidgetRuntime {
60 _runtime = {
61 serverByIdStore: () => undefined,
62 subscribeServers: noopSubscribe,
63 subscribeTheme: noopSubscribe,
64 ...rt
65 }
66 return _runtime
67}
68
69export function getRuntime(): WidgetRuntime {
70 if (!_runtime) {

Callers 5

hooks-api.test.tsxFile · 0.90
installRuntimeFunction · 0.90
form.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by 1

installRuntimeFunction · 0.72