fridays / next-routes

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

Enhancements #71

Closed chaffeqa closed 7 years ago

chaffeqa commented 7 years ago

We ended up having to do a quick cut over from our react-router + redux massive SPA to next.js. We used this lib to help convert the react-router style routes to next.js.

However we ended up "forking" (shoving into our repo) this lib to allow for:

You can see our implementation here

Our next-routes implementation is here in the repo

Please feel free to reach out on this issue with questions, I hope to have more time to write a blog post on this / make some pull requests here, but I dont know if I will have the time for that as of yet

Thanks for such a great OS project!

fridays commented 7 years ago

Thanks for sharing!

We support <Link prefetch> and there is Router.prefetchRoute() but in development mode Next.js now uses on demand entries for performance improvements.

The latest version supports <Link to='/any/path'> like in react-router

A redirect feature would be great, I think many people would like this. Any PR welcome!