How to run a query when the app is opened

Saw there was an old post about this from 2021 (now closed) however the answer to that post has since changed
There used to be a "run this query when the app opens" but it looks like that is no longer available
So how do i run a query when the app opens? - for example I need to grab the logged in users details before doing anything else

Hello!, you can do the following steps:

  1. Go to "Code" menu
  2. Select the query you want to run on page load (opening the app, refreshing the page or resetting application state)
  3. Go to "Advanced" tab
  4. Check "Run this query on page load?" option
  5. Click on "Save"

Yes, I found that eventually.
When I first create the REST api resource - that wasnt there! Refreshed the browser a couple times and then it appeared. I have raised it as a potential bug