hackernews-redesign icon indicating copy to clipboard operation
hackernews-redesign copied to clipboard

Seed initial data to SWR for the dynamic pages

Open rocktimsaikia opened this issue 3 years ago • 0 comments

Seed initial data to SWR for the dynamic pages. (ie, pages/items/[id].jsx) . It can be done using a combination of getStaticPaths and getStaticProps. It also needs all the ids of the posts showing on the pages.

rocktimsaikia avatar Apr 09 '21 03:04 rocktimsaikia