Hooks
use
Closes the Mini and returns the user to the Shop app.
use
Retrieves the deeplink URL that launched the Mini, enabling external links to open specific screens with context.
use
The useNavigateWithTransition hook provides programmatic navigation with smooth view transitions support.
use
Navigates to native Shop app screens (product details, shop profiles, orders, checkout, cart) while maintaining the Mini in the navigation stack.
Anchor to ProductProduct
use
The usePopularProducts hook fetches popular products from the catalog.
use
The useProduct hook fetches a single product by its ID.
use
The useProductList hook fetches a single product collection by its ID.
use
The useProductListActions hook provides mutation functions for managing product collections.
use
The useProductLists hook fetches all product collections that the user has created.
use
The useProductMedia hook fetches media items (images, videos, etc.) for a specific product.
use
The useProducts hook efficiently fetches multiple products in a single batched request.
use
The useProductSearch hook fetches products based on a search query.
use
The useProductVariants hook fetches product variants for a specific product.
use
The useRecommendedProducts hook fetches personalized product recommendations based on the user's shopping behavior, purchase history, and preferences in the Shop app.
Anchor to StorageStorage
use
The useAsyncStorage hook provides functions to interact with persistent storage for non-sensitive data.
use
The useImageUpload hook provides image upload functionality, handling the complete upload pipeline.
use
The useSecureStorage hook provides functions to interact with secure storage for sensitive data.
Anchor to UserUser
use
The useBuyerAttributes hook fetches shopping preference signals for personalization.
use
The useCurrentUser hook fetches the Shop app user's profile information including display name and avatar image URL.
use
The useFollowedShops hook fetches the collection of shops the user follows in the Shop app.
use
The useFollowedShopsActions hook provides mutation functions to follow and unfollow shops.
use
The useGenerateUserToken hook generates a temporary token for authenticating the current user with your backend.
use
The useOrders hook fetches the user's recent order history from all Shop stores, sorted by most recent first.
use
The useRecentProducts hook fetches products the user recently viewed in the Shop app, ordered by recency.
use
The useRecentShops hook fetches shops the user recently interacted with in the Shop app, ordered by recency.
use
The useSavedProducts hook fetches the current user's saved products.
use
The useSavedProductsActions hook provides mutation functions to save and unsave products (favorites).
Anchor to UtilUtil
use
The useErrorScreen hook displays a full-screen blocking error UI.
use
The useErrorToast hook displays a non-blocking error notification.
use
The useImagePicker hook provides access to camera and gallery functionality for selecting images.
use
The useKeyboardAvoidingView hook automatically adjusts your layout when the on-screen keyboard appears, ensuring focused input fields remain visible.
use
The useRequestPermissions hook provides a function to request native device permissions from the user.
use
Returns the safe area insets for the current device in pixels.
use
The useShare hook provides native sharing functionality through the Shop app's share sheet.