Skip to content

Fetching Meta Data (title and description etc.) from an api before page serve - SSR #9520

Discussion options

You must be logged in to vote

For the global API requests you may use a boot files, as they allow you to use async/await.
For the specific pages there is a special method named preFetch which is called everytime router uses the page in the backend.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@akshay-sood
Comment options

@KarelDiaz
Comment options

@KarelDiaz
Comment options

@akshay-sood
Comment options

@KarelDiaz
Comment options

Answer selected by akshay-sood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants