Hi,
I have a pinned element which has "Hidden on load" property checked in the properties panel. I want to show/hide this element based on database Boolean config. Even if I use `$w('element').hide();` in the promise success callback, the element is shown for few seconds to the user and then its hidden from screen.
Curious why the element is not respecting "Hidden on load" property.
On the side note, if I comment all the wix code, the element is respecting "Hidden on load" property.
Here is the code block (modified the code for brevity)
$w.onReady(function () {
wixData.get("config", "id123").then((results) => {
if (results.value === true) {
$w('#element').show();
})
});
Thanks,
Rahul Dhawani