MCPcopy Create free account
hub / github.com/GCWing/BitFun / updateState

Function updateState

src/web-ui/src/app/hooks/useWindowControls.ts:275–279  ·  view source on GitHub ↗
(newState: boolean)

Source from the content-addressed store, hash-verified

273 }
274 // Use requestAnimationFrame to avoid blocking UI updates
275 const updateState = (newState: boolean) => {
276 requestAnimationFrame(() => {
277 setIsMaximized(newState);
278 });
279 };
280
281 // Toggle maximize/restore
282 if (currentMaximized) {

Callers 1

useWindowControlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected