You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make a request with the SDK, I'm essentially always getting stale data. For some reason, jumping versions -- from 2023-10 to 2023-07 -- sometimes has fixed the issue (would need to test this more). The only consistently working hack I've found is to just reinstall the app.
To Reproduce
Steps to reproduce the behaviour:
Create a development store on shopify and follow the conventional steps to create a new app. Go through the usual configuration and get the domain and storefront token.
Create a nextjs app: npx create-next-app@latest - Make sure to create an app directory.
Add the SDK: npm i shopify-buy
Create a .env file with the appropriate SHOPIFY_STOREFRONT_TOKEN, SHOPIFY_DOMAIN, and SHOPIFY_API_VERSION variables.
Under the app directory, create the directory/file: api/products/route.ts with this code:
Bug details
Describe the bug
When I make a request with the SDK, I'm essentially always getting stale data. For some reason, jumping versions -- from
2023-10
to2023-07
-- sometimes has fixed the issue (would need to test this more). The only consistently working hack I've found is to just reinstall the app.To Reproduce
Steps to reproduce the behaviour:
npx create-next-app@latest
- Make sure to create anapp
directory.npm i shopify-buy
.env
file with the appropriateSHOPIFY_STOREFRONT_TOKEN
,SHOPIFY_DOMAIN
, andSHOPIFY_API_VERSION
variables.api/products/route.ts
with this code:Expected behavior
When adding a new product through the shopify admin, the API route should reflect the updated data.
Environment (please complete the following information):
Additional context
n/a
Bug Report Checklist
The text was updated successfully, but these errors were encountered: