Go ProSign in

This Lesson is for Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Leverage Next.js' getInitialProps lifecycle hook to load individual posts

In this lesson, we’ll continue scaffolding out the page responsible for display each blog post (/blog/:id). Specifically, we’ll leverage Next.js’ getInitialProps lifecycle method to grab the specific id for the blog post and see how we can pull this value out of the query object defined within our custom server.

You must be a Member to view code