MCPcopy
hub / github.com/plait-board/drawnix / updateAppState

Function updateAppState

packages/drawnix/src/drawnix.tsx:99–104  ·  view source on GitHub ↗
(newAppState: Partial<DrawnixState>)

Source from the content-addressed store, hash-verified

97 }
98
99 const updateAppState = (newAppState: Partial<DrawnixState>) => {
100 setAppState((currentAppState) => ({
101 ...currentAppState,
102 ...newAppState,
103 }));
104 };
105
106 const plugins: PlaitPlugin[] = [
107 withDraw,

Callers 3

withTextLinkFunction · 0.85
withPencilFunction · 0.85
withDrawnixHotkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected