Static or Dynamic rendering
Unanswered
Atlantic mackerel posted this in #help-forum
Atlantic mackerelOP
Quick and simple question:
the navigation/menu/category panel on the left relies on ALL posts's metadata/info, and posts can be CRUDed at runtime.
so the left panel should be Static rendering most of time and Dynamic rendering when posts changed.
Should it be static or dynamic?
the navigation/menu/category panel on the left relies on ALL posts's metadata/info, and posts can be CRUDed at runtime.
so the left panel should be Static rendering most of time and Dynamic rendering when posts changed.
Should it be static or dynamic?
5 Replies
it is considered to be dynamic, but ideally you cache the request and put a tag on it, and when the posts update you revalidate the tag
@Arinji it is considered to be dynamic, but ideally you cache the request and put a tag on it, and when the posts update you revalidate the tag
Atlantic mackerelOP
collecting metadata might not be a
maybe I can call a local dummy api like
request via fetch and I haven't found a way to cache/persist javascript data object in Next.jsmaybe I can call a local dummy api like
GET fetch http://127.0.0.1:3000/api/global_data so the response can be cached?Atlantic mackerelOP
@Atlantic mackerel collecting metadata might not be a `request` via `fetch` and I haven't found a way to cache/persist javascript data object in Next.js
maybe I can call a local dummy api like `GET fetch http://127.0.0.1:3000/api/global_data` so the response can be cached?
use unstable cache to cache functions