User variable delayed conditional rendering

Hello,

on a page are 2 divs with conditional rendering. they check an array in the uservariable that is available on page loading.
one div will show if in the array is a specific value, the other div will show if the value is not there.

on the deployed page happens something interesting:
first appears the div that has not the value (the conditional rendering is false). after a short moment (on my mobile phone about 2 sekunds…) appears the correct div and the first div disappears.

if i use an other variable, not a part of the user variable everything works fine.

could it be, that the conditional rendering with user variables has a special way to work?
there are only a on page load workflow that clears some other variables - nothing else.

here is a video shows what i mean:

thanks for ideas.
stefan

Hallo Stefan, sind die entsprechenden Daten auf der seite schon geladen (z.b. via fetch collection) wenn die divs dargestellt werden? Ich hatte schon manchmal probleme, weil die userdaten nicht korrekt geladen waren.

Hallo Pierre,

Für deine Antwort.
Ja, die User-Daten sind geladen und vorhanden.
Das macht die Sache ja so seltsam.

this is the answer from the support:

Hallo Stefan, danke fürs Teilen.

Das ist zu erwarten, da es ein zusätzlicher Prozess in der App ist. Wenn du wirklich nicht möchtest, dass das “öffentliche” Element zuerst angezeigt wird, ist mein erster Gedanke als Workaround: die gesamte Sektion zuerst auf isAuthenticated setzen.

Ich überlege auch, ob ich die user-Variablen beim Fetchen vom Xano nicht direkt in normale Variablen übertrage…

Mal sehen!