Get user email on page load

We have a Google Sheet query which is asking for appsmith.user.email to determine which fields to display. The table is bound to Get_Sheet.data.

When the page is initially loaded, the table is blank. If I manually re-run Get_Sheet.run() I get results. I added a console.log() and the email address is blank when the page initially loads but is visible when I manually run Get_Sheet.run().

Shouldn’t appsmith.user.email be populated immediately when the page loads, before queries?

We’ve come up with a temporary solution, which basically displays a loading page for a second before querying everything.

@EricSGS you are correct. This seems like a bug. We have filed an issue here and will get this fixed ASAP [Bug]: {{appsmith.user.email}} is not available on page load · Issue #20275 · appsmithorg/appsmith · GitHub