feat: instrument analysis
This commit is contained in:
@@ -10,6 +10,9 @@ import InstrumentChart, { TheoPoint } from '../components/InstrumentChart'
|
||||
|
||||
const api = axios.create({ baseURL: '/api' })
|
||||
|
||||
// Stable empty array — prevents InstrumentChart useEffect from re-running on every render
|
||||
const NO_CHART_EVENTS: never[] = []
|
||||
|
||||
// ── Types ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
interface CausalTemplate {
|
||||
@@ -1283,7 +1286,7 @@ export default function InstrumentDashboard() {
|
||||
<InstrumentChart
|
||||
priceData={snapshot.price_data}
|
||||
indicators={snapshot.indicators}
|
||||
events={[]}
|
||||
events={NO_CHART_EVENTS}
|
||||
height={420}
|
||||
chartType={chartStyle}
|
||||
onDateHover={handleDateHover}
|
||||
|
||||
Reference in New Issue
Block a user