Best practices on 'App load' vs. 'Page load' workflows

I haven’t seen any documentation on when to use ‘On App Load (before fetching collections)’ and ‘On Page Load (before fetching collections)’. When should I use one versus the other?

The common things that I do on a page load are redirecting users based on their role, sending analytics events, invoking popups, etc.

Thanks!
Jack

on App load will be executing only on your first page load, and will not be trigger anymore on navigation.

For redirection, you probably want to stick with Page load, as the logic is tied to the page, and need to be checked again on navigation

On App load trigger is more for data initialization which need to be done only once, and will be keep the same when navigating.

1 Like

Thanks @aurelie! Will do. The ‘app load’ trigger is configurable at the page level, which makes this a bit confusing right now.

Appreciate the tip.

you can also set app-wide app load triggers under Settings - Trigger workflows