In Weblands web can use asyncData hook to fetch data on the server side.
This hook can be placed both on page components and on any others.
In the follow example apiResult
variable returned from asyncData
will be merged with initial apiResult
in data
.
Customizing app behavior
asyncData
hook takes an SSR app execution context as parameter (EnhanceAppContext), so you can modify app behaviour during to your specific needs
For example, add page-specific meta-tags