Dear Shopify Team,
I am writing to report a critical issue with the useSavedProducts hook in the Shop Minis SDK.
Issue Description: The useSavedProducts hook consistently fails to load the complete list of saved products for a user. Even when the first parameter is set to a high number (e.g., 250) and fetchPolicy is set to network-only , the hook returns only a subset of the actual saved items.
Observed Behavior:
-
The test user has over 20 products saved in their “Favorites” list in the main Shop App.
-
However, inside our Mini, useSavedProducts returns only a partial list (e.g., 14 items).
-
We verified this by debugging the IDs returned by the hook and comparing them with the actual “Favorites” list visible in the Shop App.
-
We attempted to use refetch and manual pagination, but the hook does not retrieve the missing items.
-
The pageInfo.hasNextPage returns false even though there are clearly more products in the user’s actual collection.
const savedProductsResult = useSavedProducts({
first: 250,
fetchPolicy: 'network-only'
});
We suspect this might be an internal API limit or a bug in the pagination logic of the underlying useSavedProducts implementation. Could you please investigate? Thank you.