How can I call a js object on page load itself

I have an API call in the application to get user info of the login user. The API is calling on page load. I need to store the values from that API on page load itself before any event handling happens. Is there a way to do this ?

HI Ginjo,
We are currently testing this feature - enabling running of JS functions on page load. This should be available in production soon (even with the next upgrade if there are not big problems with it).

Here’s a sneak peek

Thanks,
Rohan

1 Like

@RohanArthur Thank you for the update . Waiting for the new features :smiley:

It is now available on Appsmith Cloud

1 Like

ok . Anyway I need it in my self hosted instance .