Skip to main content

useShop

The useShop hook enables fetching a shop by its ID.

Anchor to params
params
required

Examples

tsx

import {useShop} from '@shopify/shop-minis-react'

export default function MyComponent() {
const {shop, loading, error} = useShop({id: 'gid://shopify/Shop/1234567890'})

console.log({shop, loading, error})
}

Was this page helpful?