Is there any cache mechanism behind the ComponentPropsService, is it executed for every request in the editing/preview mode? #1691
Unanswered
achievecreative
asked this question in
Help
Replies: 1 comment 4 replies
|
Hi @achievecreative ! Just want to ask some general questions to understand the issue better. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
We are using Sitecore 10.1 + JSS SDK 21.2 + nextjs 13.5 + nodejs 18.
I expected the getStaticProps method should be executed for every request in the editing/preview mode, at least it should be executed when nextjs is revalidate the page (our setting is 5s).
We have a component using the getStaticProps to fetch data from external service. I found out the data is not always up to date during the editing/preview (sometime it take a few minutes, sometime it will take around 20 minutes).
To debug this I add some logs in the getStaticProps method and found out I can't see the log message for every request.
https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-headless-development/component-level-data-fetching-in-jss-next-js-apps.html
Additional information
No response
All reactions