saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
769 stars 672 forks source link

Product information not updating #1091

Open pnpaes opened 3 years ago

pnpaes commented 3 years ago

I am using the store front 3.0.0-b.2. The product details page is not updating it automatically when price or other product information changes int he dashboard. I can try to bust all local data or use private mode and it is the same behaviour. It only updates if I stop/start the next server... Seems that some static information is being rendered when the server starts and the product page doesn't fetch "fresh information". If i look into the browser network there is no api request in the product page, only in the product listing. Which means the product listing get the latest updated price, but not the product page itself.

Is there a configuration that I can adjust or something that I can tweak to avoid that? Locally i am just running npm run startso there is not export build with static html being generated.

Appreciate any help here.

kdheeraz commented 3 years ago

Same here using the same version of store-front

kdheeraz commented 3 years ago

Products are not visible under the category, shows zero records

tmechsner commented 3 years ago

Try experimenting with the INCREMENTAL_STATIC_REGENERATION_REVALIDATE environment variable. Per default I think it is set to 60 minutes (3600 seconds). After that time, if you refresh the page, the data get refreshed. This, however, only works for the next server. In case you use the Dockerfile as provided in the repo, it will use a static export of the site and serve it with an nginx server and never refresh any data.

pnpaes commented 3 years ago

That was my first “try”. Reduced all the way to 10 seconds without success. I had to bypass that all together and create a direct query instead. Quite annoying that the very basics have these issues.

On Tue, 28 Sep 2021 at 08:50, Timo @.***> wrote:

Try experimenting with the INCREMENTAL_STATIC_REGENERATION_REVALIDATE environment variable. Per default I think it is set to 60 minutes (3600 seconds). After that time, if you refresh the page, the data get refreshed. This, however, only works for the next server. In case you use the Dockerfile as provided in the repo, it will use a static export of the site and serve it with an nginx server and never refresh any data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mirumee/saleor-storefront/issues/1091#issuecomment-928905436, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEEVQJFWOZYZZ5RGEBMUDUEFQRRANCNFSM5CZ2GA2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- https://bottr.me/pnpaes?utm_source=emailSignature&referrer=876128db

Paulo Paes

@pnpaes https://bottr.me/pnpaes?utm_source=emailSignature&referrer=876128db

tmechsner commented 3 years ago

Oh dear. Sure that you tried it with "next start"? For me it works locally. But when deployed with docker, I get error messages when it tries to refresh the product pages: At least one of arguments is required: 'id', 'slug'. I think I'll open up a new Issue for this - although it feels like this repository is somewhat neglected, considering the activity in the other two repositories..