MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / useStateStore

Function useStateStore

web/packages/shared/hook-store/index.tsx:45–49  ·  view source on GitHub ↗
(nameSpace?: string)

Source from the content-addressed store, hash-verified

43export const useDispatchStore = <Action,>() => useContext(DispatchContext as DispatchContextType<Action>);
44
45export const useStateStore = <State,>(nameSpace?: string) => {
46 const store = useContext(StateContext);
47 const state: State = nameSpace ? store[nameSpace] : store;
48 return state;
49};

Callers 6

ToolDetailFunction · 0.90
ProfileFunction · 0.90
TokenFunction · 0.90
ProfileFunction · 0.90
useOrgAdminPermFunction · 0.90
UserFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected