The loading action set is used to indicate to merchants that a page is loading or an upload is processing.


Create an app and import the Loading module from @shopify/app-bridge/actions. Note that we'll be referring to this sample application throughout the examples below.

Start loading

Call the START loading action when loading new pages or completing asynchronous requests that might be more than a few seconds:

Stop loading

After the loading action is complete, you can dispatch the STOP loading action:

Subscribe to actions

You can subscribe to actions that are dispatched through the loading action set:

Subscribe to all actions

You can subscribe to all loading actions, regardless of which action sets trigger the actions: