Dynamic page code runs when an entry in the collection is created or updated?

Hi y’all,

I have an api call that runs automatically on page load for a certain dynamic page to redirect back into a 3rd party onboarding. This code sits within the datasets onReady handler, which is inside the page’s onReady handler.

Whenever I create a new entry in the collection, or update an entry, it seems like this api call runs, because I keep getting errors from this 3rd party (it took waaay too long to figure out why I was getting errors for an api call I had no idea I was making :sweat_smile:).

Might there be a way to write the code so as to avoid it running when the data is inserted or updated?

Mucho apreciado