What is the difference between the metadata constant, and the generateMetadata function?
Answered
Cimarrón Uruguayo posted this in #help-forum
Cimarrón UruguayoOP
^^
Answered by iyxan23
having a constant metadata is useful for pages that's static and doesn't change, e.g. the homepage.
when you have a page that is dynamic and could display different things, e.g. a page showing the details of a product,
when you have a page that is dynamic and could display different things, e.g. a page showing the details of a product,
generateMetadata
is used to fetch stuff and have it set the title n stuff9 Replies
Cimarrón UruguayoOP
oh i guess generateMetadata is more flexible
scrolled down a lil further
@Cimarrón Uruguayo ^^
having a constant metadata is useful for pages that's static and doesn't change, e.g. the homepage.
when you have a page that is dynamic and could display different things, e.g. a page showing the details of a product,
when you have a page that is dynamic and could display different things, e.g. a page showing the details of a product,
generateMetadata
is used to fetch stuff and have it set the title n stuffAnswer
you beat me to it lol
Cimarrón UruguayoOP
haha 😅
thank you for the explanantion
Cimarrón UruguayoOP
reaffirms my understanding