Since I added getStaticPaths
to pages navigation between pages in development mode (next dev
) became painfully slow. Are there any means to optimize this? I have tried to memoize results of related asynchronous calls to database but it seems like did not do anything.
When navigating to a new page in dev mode, Next needs to compile the page you are going to. So it is common that there is some time in between navigation.
Also from the docs:
In development,
getStaticProps
is called on every request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With