what does getStaticParams do during dev mode?
Answered
NuclearMonkey posted this in #help-forum
what does getStaticParams do during dev mode?
Answered by Arinji
basically it means that its just calling the function as you open the page
8 Replies
During next dev, generateStaticParams will be called when you navigate to a route. this was in the documentationbut Im confused how it really works
is
getStaticParams unnecessary during dev mode? why does it still run on dev modebasically it means that its just calling the function as you open the page
Answer
while in build it does it all at once for all the pages
oh okay thanks
@Arinji but does generateStaticParams create a static html when visiting a route on dev build?
@NuclearMonkey <@890486507872342027> but does generateStaticParams create a static html when visiting a route on dev build?
every page has static html, dosent matter how you call it, all generateStaticParams does is just tell nextjs which pages to render, and on dev, instead of that happening on build, nextjs renders each page as you open it