Any setState call inside onCrosshairMove handler function causes Maximum update depth exceeded error
Even simple examples cause this problem:
const [time, setTime] = useState<MouseEventParams['time']>(undefined)
const onCrosshairMove = (event: MouseEventParams<Time>) => setTime(event.time)
For now the only way I can handle it is by wrapping handler function with debounce with 0 delay
Any setState call inside onCrosshairMove handler function causes Maximum update depth exceeded error
Even simple examples cause this problem:
For now the only way I can handle it is by wrapping handler function with debounce with 0 delay