sampoder / nextjs-isr-swr-example

👾 Basic example of using Next.js, ISR & SWR
nextjs-isr-swr-example.vercel.app
9 stars 0 forks source link

initialData not in SWR docs #1

Open inezabonte opened 3 years ago

inezabonte commented 3 years ago

Hey @sampoder I was reading your article on how to work with SWR + ISR, I noticed that the initialData option does not exist within the SWR docs and it's also not auto-suggested when I try typing it.

https://github.com/sampoder/nextjs-isr-swr-example/blob/9942d5f85b90afbba9b198f267d21909011a5690/pages/index.js#L5

sampoder commented 3 years ago

Seems like this was changed in https://github.com/vercel/swr/pull/1370

sampoder commented 3 years ago

Will update the example code base and will get the article updated