MCPcopy
hub / github.com/claude-code-best/claude-code / useSetAppState

Function useSetAppState

src/state/AppState.tsx:153–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 * this hook will never re-render from state changes.
152 */
153export function useSetAppState(): (updater: (prev: AppState) => AppState) => void {
154 return useAppStore().setState;
155}
156
157/**
158 * Get the store directly (for passing getState/setState to non-React code).

Callers 15

BackgroundHintFunction · 0.85
SessionBackgroundHintFunction · 0.85
CoordinatorTaskPanelFunction · 0.85
StatusLineInnerFunction · 0.85
ModelPickerFunction · 0.85
BridgeDialogFunction · 0.85
ThemePickerFunction · 0.85
PermissionPromptFunction · 0.85
PermissionRuleListFunction · 0.85

Calls 1

useAppStoreFunction · 0.85

Tested by

no test coverage detected