fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

<Link prefetch> #28

Closed sedubois closed 7 years ago

sedubois commented 7 years ago

From reading the README, it's not clear if Link supports Next.js' prefetch option?

Thanks 🙂

HaNdTriX commented 7 years ago

It does since it just extends the next/link link.

https://github.com/fridays/next-routes/blob/master/src/index.js#L54-L64

sedubois commented 7 years ago

OK, thanks! Don't know if documentation should reflect this?

HaNdTriX commented 7 years ago

Since you stumbled over it, I believe yes. Actually I also had to check the code to be sure. So I chose a more general wording.

Other props like prefetch will work as well.

If next/link will get more props we don't need to update the docs.