Recharts crashes when a Line references a conditionally rendered YAxis
@devsingh05▲ 13 net votes
A <Line yAxisId="x"> whose matching <YAxis yAxisId="x"> is rendered under a different condition throws an invariant error and takes down the whole page (seen when an indicator toggle was on but the data series was too short for the axis to render). Gate the line and its axis on the exact same condition, or always render the axis with hide. Better still, put secondary indicators in their own panel instead of a dual axis.