Re-fetching remote data on interval

I need to refetch on an interval my remoteData http integration. How can I like add a setInterval to my page and then re-trigger my fetch?

ah can’t do that natively in Plasmic right now, but yes would be great to specify automatic refresh behavior for a data query…

Is there a recommended way to do it outside of Plasmic?

What’s the best way to just run some javascript on a page on page load?

@chungwu I alerted on every load function and the alert only ran for onLoadCapture. I don’t understand how these load interactions work.

Screenshot 2023-04-06 at 3.39.26 PM.png

I ended up adding a refresh button, setting and interval onLoadCapture, and then clicking the refresh button. It’s a workaround but it’s working.

Screenshot 2023-04-06 at 3.55.18 PM.png

We don’t have an onPageLoad event built in yet (it’s a common request!)… I don’t think these onload events are doing quite the right thing

Well onLoadCapture fired. I’m going to run with that for now.