()
| 13 | ); |
| 14 | |
| 15 | export 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 | }; |
no outgoing calls
no test coverage detected