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
Hi
I was looking for a possibility to share props between pages in the SSG context. I read this comment: #10933 (comment) and followed this discussion: #11370
My request is slightly different: I use headless CMS and the payload for each page consist of a json response similar like this:
The only data which is unique for each slug is page whilst settings,staticElements,routes will not change.
Is there a way to write settings,staticElements,routes as static json into the cache and make it available inside of my app component on client render?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I was looking for a possibility to share props between pages in the SSG context. I read this comment: #10933 (comment) and followed this discussion: #11370
My request is slightly different: I use headless CMS and the payload for each page consist of a json response similar like this:
The only data which is unique for each slug is
page
whilstsettings,staticElements,routes
will not change.Is there a way to write
settings,staticElements,routes
as static json into the cache and make it available inside of my app component on client render?Beta Was this translation helpful? Give feedback.
All reactions