App
LoadingIndicator
Bridges Nuxt loading indicator with Shopify Admin loading bar.
Usage
Wrap your page or layout content:
<template>
<ShLoadingIndicator>
<ShPage title="Products">
<!-- content -->
</ShPage>
</ShLoadingIndicator>
</template>
Props
This component has no props.
Slots
| Slot | Description |
|---|---|
default | Page content |
Notes
- Uses
useLoadingIndicator()from Nuxt to watch theisLoadingstate. - Calls
shopify.loading.show()/shopify.loading.hide()viauseAppBridge(). - Automatically hides the loading bar on component unmount.
- This is a renderless component — it does not produce any wrapper DOM element.