MCPcopy Create free account
hub / github.com/anus-dev/ANUS / useStreamingContext

Function useStreamingContext

packages/cli/src/ui/contexts/StreamingContext.tsx:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13);
14
15export const useStreamingContext = (): StreamingState => {
16 const context = React.useContext(StreamingContext);
17 if (context === undefined) {
18 throw new Error(
19 'useStreamingContext must be used within a StreamingContextProvider',
20 );
21 }
22 return context;
23};

Callers 3

ShowMoreLinesFunction · 0.85
AnusRespondingSpinnerFunction · 0.85
LoadingIndicatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected