(no title)
jpjuni0r | 6 months ago
Other web frameworks support this too, if you look for "static export" options. Next.js, for example, supports this via the getInitialProps function.
What I like especially about Astro, that you perform this data loading during build time from any component/file on your page. With Next.js, this is only possible via the top level Page component.
pjmlp|6 months ago
And if using app router model, that is part of React server components.