The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.
Describe the bug
I have been using js-buy-sdk library in my React Native application
Before update to v2.17.0, i could fetch all the collection's products by using fetchWithProducts and then FetchNextPage for pagination. But after the update, i get the following:
[TypeError: Cannot convert undefined value to object]
To Reproduce
Steps to reproduce the behaviour:
The client is intialised as per normal:
var Shopify = Client.buildClient({
domain: Constants.Shopify.url,
storefrontAccessToken: Constants.Shopify.storefrontAccessToken,
});
Bug details
Describe the bug I have been using js-buy-sdk library in my React Native application Before update to v2.17.0, i could fetch all the collection's products by using fetchWithProducts and then FetchNextPage for pagination. But after the update, i get the following:
[TypeError: Cannot convert undefined value to object]
To Reproduce Steps to reproduce the behaviour:
The client is intialised as per normal:
Call the fetchWithProducts function:
And then call the FetchNextPage for pagination
Expected behavior fetchNextPage working fine and i can load more data when i'm scrolling down the product list
Environment (please complete the following information):
https://github.com/Shopify/js-buy-sdk/issues/920#tasklist-block-07048f48-c3be-4cd6-a577-03d477369e08