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
{{ message }}
This repository was archived by the owner on Mar 1, 2022. It is now read-only.
I need somehow to render a menubar, rendering links from some external data.
I can do it with getStaticProps in _app.js page, passing data via some react context
But that way, If only 3 of 100 pages use that menu component, then 97 pages would fetch unneeded data
This solution seems interesting, as i think it fits right? But also this requires adding withCMSPage to every page for a “possible” CMS component present on the page tree?
I need somehow to render a menubar, rendering links from some external data.
I can do it with getStaticProps in _app.js page, passing data via some react context
But that way, If only 3 of 100 pages use that menu component, then 97 pages would fetch unneeded data
This solution seems interesting, as i think it fits right? But also this requires adding withCMSPage to every page for a “possible” CMS component present on the page tree?
Thanks a lot