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

Function useAppStore

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

Source from the content-addressed store, hash-verified

102}
103
104function useAppStore(): AppStateStore {
105 // eslint-disable-next-line react-hooks/rules-of-hooks
106 const store = useContext(AppStoreContext);
107 if (!store) {
108 throw new ReferenceError('useAppState/useSetAppState cannot be called outside of an <AppStateProvider />');
109 }
110 return store;
111}
112
113/**
114 * Subscribe to a slice of AppState. Only re-renders when the selected value

Callers 3

useAppStateFunction · 0.85
useSetAppStateFunction · 0.85
useAppStateStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected