Having trouble dynamically updating marks on the line. My goal is to conditionally render marks on a timeline. Our domain is around a year, with each step representing a minute.
After updating the marks state variable, the renderMark function does not seem to correctly render.
If I resize the parent container, the component updates and the marks suddenly appear.
Having trouble dynamically updating marks on the line. My goal is to conditionally render marks on a timeline. Our domain is around a year, with each step representing a minute.
After updating the
marks
state variable, therenderMark
function does not seem to correctly render.If I resize the parent container, the component updates and the marks suddenly appear.