()
| 21 | } |
| 22 | |
| 23 | function useContainer(): Value { |
| 24 | let value = React.useContext(Context) |
| 25 | if (value === null) { |
| 26 | throw new Error("Component must be wrapped with <Container.Provider>") |
| 27 | } |
| 28 | return value |
| 29 | } |
| 30 | |
| 31 | return { Provider, useContainer } |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…