mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
9 lines
246 B
TypeScript
9 lines
246 B
TypeScript
import {useLayoutEffect} from 'react';
|
|
import * as echarts from 'echarts/core';
|
|
|
|
export function useChartGroup(groupName: string, deps?: React.DependencyList) {
|
|
useLayoutEffect(() => {
|
|
echarts.connect(groupName);
|
|
}, [groupName, deps]);
|
|
}
|