Modal not showing on page refresh

I have a modal that's supposed to pop up when the user enters the app. It works when you launch the app from the Retool dashboard. However, it does NOT pop up when you just use the url or when you refresh the page.

I have it as hidden = false for both web and mobile.

I also have a myModal.show() command in a js query that runs on page load.

What is happening?

(And thanks!)

Okay - I just tried something.

I made it hidden automatically, and then did a myModal.show() on the init js query that launches on page load.

This now seems to work.

However, I think that other way SHOULD have also worked.

Hi @mathfour!

Glad to hear you got things working.

I just tested out setting hidden = false for a modal and it seems to be appearing open on page refresh and on pasting the url into a new browser tab. Is there anything I am missing from your initial setup?