Global variable Updated by and Interval Componant

Is this still the best of working with a global variable in Dash (i.e. storing it in a hidden div)?

Edit: seems like it is. Ref:https://dash.plot.ly/sharing-data-between-callbacks