()
| 173 | } |
| 174 | |
| 175 | export function useJsonColumnViewState(): JsonColumnViewState { |
| 176 | const context = useContext(JsonColumnViewStateContext); |
| 177 | |
| 178 | invariant( |
| 179 | context, |
| 180 | "useJsonColumnViewState must be used within a JsonColumnViewStateContext.Provider" |
| 181 | ); |
| 182 | |
| 183 | return context; |
| 184 | } |
| 185 | |
| 186 | export function useJsonColumnViewAPI(): JsonColumnViewAPI { |
| 187 | const context = useContext(JsonColumnViewAPIContext); |
no outgoing calls
no test coverage detected