Open Wishlist
Opens the wishlist page in the app.
Description
The openWishlist() action navigates the user to the native wishlist page inside the app.
Function Signature
await Superfans.actions.openWishlist();| Parameter | Type | Required | Description |
|---|---|---|---|
| Nil | Nil | Nil | This action does not require any parameter. |
Structure of Response
| Status | Response |
|---|---|
| Success | { "status": "success", "message": "Wishlist page opened successfully" } |
| Unexpected Error | { "status": "error", "errorId": 500, "errorHandle": "unknown-error", "message": "Something unexpected happened" } |
Example Usage
await Superfans.actions.openWishlist();Best Practices
- Use this from profile, header, or empty-state CTAs that should open the saved products list.
- Pair with
Superfans.listeners.onWishlistUpdatedif your block also shows wishlist count.
Caveats
- This action opens the native wishlist screen; it does not add or remove products.
- Wishlist data is tied to the logged-in customer.
Updated about 7 hours ago
Did this page help you?