MCPcopy Index your code
hub / github.com/winfunc/opcode / useOutputCache

Function useOutputCache

src/lib/outputCache.tsx:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39const OutputCacheContext = createContext<OutputCacheContextType | null>(null);
40
41export function useOutputCache() {
42 const context = useContext(OutputCacheContext);
43 if (!context) {
44 throw new Error('useOutputCache must be used within an OutputCacheProvider');
45 }
46 return context;
47}
48
49interface OutputCacheProviderProps {
50 children: React.ReactNode;

Callers 2

SessionOutputViewerFunction · 0.90
AgentRunOutputViewerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected