mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-09 11:31:43 +01:00
In a non-dev build (no initial double-renders), the tree lines would not be rendered correctly from the parent of a binop to its first child, because the first child would be rendered before the parent, and the parent's ref hadn't been set yet at that time. Switched from a normal ref to a callback-based ref with explicit React state update to make sure that the child gets to know about the parent's (later) rendered div element. Signed-off-by: Julius Volz <julius.volz@gmail.com>