()
| 39 | const OutputCacheContext = createContext<OutputCacheContextType | null>(null); |
| 40 | |
| 41 | export 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 | |
| 49 | interface OutputCacheProviderProps { |
| 50 | children: React.ReactNode; |
no outgoing calls
no test coverage detected