UI control can't be triggered at Nodered start

Hi,

I have a dashboard tab where I want to show or hide some groups as soon as Node red start, depending on the content of a file.

I'm using UI control for this.

I observed that this is working very well if triggered after node red has started but not working at start when triggered by a "inject once at start" inject node : all the groups are shown.

Do you know why ? and what event I should wait for before hiding groups ?

Thank you

either... increase the delay for the inject at start so allow time for dashboard to fire up... or use ui_control node - that emits a connect event whenever someone connects - and can be used to fir the hiding of things at that point.