I have a formulae in the OnVisible property of the app's first screen. It sets context variables that I use to show/hide elements.
If(
!varUserHasApps,
UpdateContext({varEditMode: true, varListEdited: true}),
UpdateContext({varEditMode: false, varListEdited: false})
)
In preview mode it works as expected and displays the items where varEditMode=false. If I play the app or view in browser it is executing the true condition instead of the false condition.
To test I added an extra screen and buttons to navigate back and forth. If I navigate to the 2nd screen and back again the formulae runs as expected.
varUserHasApps is set in the OnStart. It is set to either true or false depending on a collection containing data.
If(
IsEmpty(colSavedApps),
Set(varUserHasApps,false),
Set(varUserHasApps,true)
);
Wondering if this is a bug or I'm missing something?