Skip to main content

Wishlist

The wishlist is persisted locally in AsyncStorage — no API calls are needed. Items are stored as { productId, addedAt } pairs.

Usage

Hook API

Service API

How It Works

  • Initialized from AsyncStorage when StackfrontProvider mounts
  • All mutations update in-memory state and persist to AsyncStorage
  • isInWishlist is synchronous — no async check needed
  • The wishlist is tied to the device, not the customer account