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

Function requireRefresh

src/events.ts:7–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { getFocusableElements } from "./utils";
6
7export function requireRefresh() {
8 const resizeTimeout = getState("__resizeTimeout");
9 if (resizeTimeout) {
10 window.cancelAnimationFrame(resizeTimeout);
11 }
12
13 setState("__resizeTimeout", window.requestAnimationFrame(refreshActiveHighlight));
14}
15
16function trapFocus(e: KeyboardEvent) {
17 const isActivated = getState("isInitialized");

Callers

nothing calls this directly

Calls 2

getStateFunction · 0.90
setStateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…