Skip to main content

useFollowedShops

The useFollowedShops hook fetches the collection of shops the user follows in the Shop app. Use this to display followed brands, create quick-access shop lists, show follow status in UI, or build social commerce features. Pair with useFollowedShopsActions() to manage follow/unfollow operations.

Anchor to params
params

Examples

tsx

import {useFollowedShops, Button} from '@shopify/shop-minis-react'

export default function MyComponent() {
const {shops, loading, error, hasNextPage, loadMore} = useFollowedShops({
first: 10,
})

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

return (
<>
{/* Render shops here */}
{hasNextPage && (
<Button onClick={loadMore} disabled={loading}>
Load More
</Button>
)}
</>
)
}

Was this page helpful?