Skip to main content

useFollowedShopsActions

The useFollowedShopsActions hook provides mutation functions to follow and unfollow shops. Returns followShop() and unfollowShop() functions that accept a shop GID. Following a shop adds it to the user's followed shops collection in the Shop app, enabling personalized recommendations. useFollowedShops() hook can be used to display current follow status.

Caution

This hook requires adding the following scopes to the manifest file:

shops:follows:write

For more details, see manifest.json.

Anchor to useFollowedShopsActions
useFollowedShopsActions()


Was this page helpful?