()
| 80 | createContext<CartesianChartContextValue | null>(null); |
| 81 | |
| 82 | export const useCartesianChartContext = (): CartesianChartContextValue => { |
| 83 | const context = useContext(CartesianChartContext); |
| 84 | if (isNullish(context)) { |
| 85 | errorNew('Series components must be used inside a CartesianChart'); |
| 86 | } |
| 87 | return context as CartesianChartContextValue; |
| 88 | }; |
no test coverage detected
searching dependent graphs…