Dynamic NavBar in Layout.tsx
Unanswered
Yellowstripe scad posted this in #help-forum
Yellowstripe scadOP
Hello everyone, i want to make a dynamic NavBar which uses data fetched from SanityCMS. But since i don't want it to be called with every page on build is there a way to make it only get called once on build in the layout file and that's it no more calls.
Will doing a call in the Layout file be cached and only called once per build and not get called when interacting with the production build??
Will doing a call in the Layout file be cached and only called once per build and not get called when interacting with the production build??
3 Replies
I think you are over-thinking.
I feel like caching your data fetching will be enough