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();
ParameterTypeRequiredDescription
NilNilNilThis action does not require any parameter.

Structure of Response

StatusResponse
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

  1. Use this from profile, header, or empty-state CTAs that should open the saved products list.
  2. Pair with Superfans.listeners.onWishlistUpdated if your block also shows wishlist count.

Caveats

  1. This action opens the native wishlist screen; it does not add or remove products.
  2. Wishlist data is tied to the logged-in customer.

Did this page help you?