This page was printed on Aug 20, 2019. For the current version, visit https://help.shopify.com/en/api/embedded-apps/app-bridge/actions/loading.
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 action when loading new pages or completing asynchronous requests that might be more than a few seconds:
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: