MCPcopy
hub / github.com/nilbuild/driver.js / setState

Function setState

src/state.ts:33–35  ·  view source on GitHub ↗
(key: K, value: State[K])

Source from the content-addressed store, hash-verified

31let currentState: State = {};
32
33export function setState<K extends keyof State>(key: K, value: State[K]) {
34 currentState[key] = value;
35}
36
37export function getState(): State;
38export function getState<K extends keyof State>(key: K): State[K];

Callers 9

initFunction · 0.90
driveFunction · 0.90
transferHighlightFunction · 0.90
animateFunction · 0.90
renderPopoverFunction · 0.90
transitionStageFunction · 0.90
trackActiveElementFunction · 0.90
mountOverlayFunction · 0.90
requireRefreshFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…