TIL: Shallow Routing in NextJS

Stay in the loop!

Subscribe to my newsletter and stay up-to-date with my latest blog posts. Get an email every time I post something new.

  Router.pushRoute(url,{ shallow: true });

This lets you shallow route to a url without going through getInitialProps again which inturn prevents unnecessary nw requests.


No Comments Yet