Why are the relayoutData and selectedData variables of dcc.Graph both changed when using the select box or lasso tool?

Hi @worker1

thanks for the hint to rather use State(‘graph-figure’, ‘figure’) than the relayoutData variable when looking for the current range of the x or y axis of in a dcc.Graph for example. It seems this is a more robust method that doesn’t break if a select tool or any other interaction changing the relayoudData variable is used.
It looks like this method also avoids the problem that the range values of the relayoutData are different depending on the mode of user interaction as posted by @geepy here.
In that case, I also understand why @AIMPED doesn’t see how the current behaviour of the relayoutData variable might be troublesome.