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

Function getState

src/state.ts:39–41  ·  view source on GitHub ↗
(key?: K)

Source from the content-addressed store, hash-verified

37export function getState(): State;
38export function getState<K extends keyof State>(key: K): State[K];
39export function getState<K extends keyof State>(key?: K) {
40 return key ? currentState[key] : currentState;
41}
42
43export function resetState() {
44 currentState = {};

Callers 15

getPopoverDimensionsFunction · 0.90
repositionPopoverFunction · 0.90
renderPopoverArrowFunction · 0.90
handleOverlayClickFunction · 0.90
moveNextFunction · 0.90
movePreviousFunction · 0.90
handleArrowLeftFunction · 0.90
handleArrowRightFunction · 0.90
initFunction · 0.90
destroyFunction · 0.90
driverFunction · 0.90
refreshActiveHighlightFunction · 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…