MCPcopy Index your code
hub / github.com/codeaashu/claude-code / useAppStore

Function useAppStore

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

Source from the content-addressed store, hash-verified

115 };
116}
117function useAppStore(): AppStateStore {
118 // eslint-disable-next-line react-hooks/rules-of-hooks
119 const store = useContext(AppStoreContext);
120 if (!store) {
121 throw new ReferenceError('useAppState/useSetAppState cannot be called outside of an <AppStateProvider />');
122 }
123 return store;
124}
125
126/**
127 * 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